You are not logged in.

#1 2010-04-14 13:45:56

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

VirtualBox Package Build Failed

Today I used the AUR for the 1st time in my Arch experience & creating the VirtualBox package was fine. I downloaded this tarball and followed the AUR Wiki and installed everything fine. Now when I went to start the 'vboxdrv' it said it could not be found:

[root@ghost ~]# /etc/rc.d/vboxdrv start
-bash: /etc/rc.d/vboxdrv: No such file or directory

I show that the installation of VirtualBox did not get any errors:

[root@ghost ~]# pacman -Qs virtualbox
local/virtualbox_bin 3.1.6-1
    Powerful x86 virtualization (Personal Use Binaries Edition).

Now when I try to start VirtualBox I get the following error:

[cmennens@ghost virtualbox_bin]$ VirtualBox 
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/opt/VirtualBox/VirtualBox.so",) failed: libSDL-1.2.so.0: cannot open shared object file: No such file or directory

Below is what I see after I downloaded the Tarball and ran 'makepkg -s' against it:

[cmennens@ghost builds]$ ls -l
total 8
drwxr-xr-x 4 cmennens users 4096 Apr 14 09:37 virtualbox_bin
-rw-r--r-- 1 cmennens users 3063 Apr 14 09:15 virtualbox_bin.tar.gz

[cmennens@ghost builds]$ cd virtualbox_bin

[cmennens@ghost virtualbox_bin]$ ls -l
total 91336
drwxr-xr-x 6 cmennens users     4096 Apr 14 09:18 pkg
-rw-r--r-- 1 cmennens users     4694 Jan  1  1970 PKGBUILD
drwxr-xr-x 2 cmennens users     4096 Mar 25 15:10 src
-rw-r--r-- 1 cmennens users      113 Jan  1  1970 vbox_build_module
-rw-r--r-- 1 cmennens users     3269 Jan  1  1970 vbox.install
-rw-r--r-- 1 cmennens users 51834320 Mar 25 15:44 VirtualBox-3.1.6-59338-Linux_amd64.run
-rw-r--r-- 1 cmennens users 41664600 Apr 14 09:18 virtualbox_bin-3.1.6-1-x86_64.pkg.tar.xz

I installed with 'pacman -U' the 'tar.xz' file that was created today. It went fine with no errors and all dependencies installed. Now I can't figure out how to start the program because it's not in /etc/rc.d/...

What did I do wrong or how do I fix it sad


./

Offline

#2 2010-04-14 14:28:14

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: VirtualBox Package Build Failed

It's not a daemon, it's a module. Hence you should do "modprobe vboxdrv". If you want it to load at boot, add it to the "MODULES" line in rc.conf.

Offline

#3 2010-04-18 17:43:14

augustl
Member
Registered: 2010-02-22
Posts: 33

Re: VirtualBox Package Build Failed

Install the sdl package. It is an optional dependency since you can use the VBoxManage tool without it, but it's required for the GUIs to work.


pacman -S sdl

Last edited by augustl (2010-04-18 17:43:45)

Offline

#4 2010-04-26 05:32:41

jeff story
Member
Registered: 2009-05-31
Posts: 238
Website

Re: VirtualBox Package Build Failed

Reboot....

I just finished with the same AUR vbox build and install to upgrade my older version. I just rebooted to get the kernel module to run.

Then

Try this in the terminal. It works for me.

$ VirtualBox

I get the same error as you if I use your above command.

My rc.conf modules:

# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(fuse vboxdrv vboxnetflt)

This is my build and install output:

[jeff@Arch2009p2 virtualbox_bin]$ makepkg PKGBUILD
==> Making package: virtualbox_bin 3.1.6-1 x86_64 (Sun Apr 18 16:02:41 PDT 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading VirtualBox-3.1.6-59338-Linux_amd64.run...
--2010-04-18 16:02:48--  http://download.virtualbox.org/virtualbox/3.1.6/VirtualBox-3.1.6-59338-Linux_amd64.run
Resolving download.virtualbox.org... 72.5.124.114
Connecting to download.virtualbox.org|72.5.124.114|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://dlc-cdn.sun.com/virtualbox/3.1.6/VirtualBox-3.1.6-59338-Linux_amd64.run [following]
--2010-04-18 16:02:48--  http://dlc-cdn.sun.com/virtualbox/3.1.6/VirtualBox-3.1.6-59338-Linux_amd64.run
Resolving dlc-cdn.sun.com... 68.142.123.174, 68.142.123.175
Connecting to dlc-cdn.sun.com|68.142.123.174|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://dlc-cdn-rd.sun.com/c1/virtualbox/3.1.6/VirtualBox-3.1.6-59338-Linux_amd64.run?e=1271632071&h=b7121ed59ec4bb1a41856f66b99bb026 [following]
--2010-04-18 16:02:49--  http://dlc-cdn-rd.sun.com/c1/virtualbox/3.1.6/VirtualBox-3.1.6-59338-Linux_amd64.run?e=1271632071&h=b7121ed59ec4bb1a41856f66b99bb026
Resolving dlc-cdn-rd.sun.com... 68.142.121.148, 208.111.159.10
Connecting to dlc-cdn-rd.sun.com|68.142.121.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51834320 (49M) [application/octet-stream]
Saving to: "VirtualBox-3.1.6-59338-Linux_amd64.run.part"

88% [=======================================================>        ] 45,708,419   159K/s  eta 38s    88% [===================================================>       ] 45,712,387   158K/s  eta 38s    88% [===============================================>       ] 45,721,027   158K/s  eta 38s    100%[==========================================================>] 51,834,320   159K/s   in 5m 19s   

2010-04-18 16:08:08 (159 KB/s) - "VirtualBox-3.1.6-59338-Linux_amd64.run.part" saved [51834320/51834320]

  -> Found vbox_build_module in build dir
==> Validating source files with md5sums...
    VirtualBox-3.1.6-59338-Linux_amd64.run ... Passed
    vbox_build_module ... Passed
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting build()...
Verifying archive integrity... MD5 checksums are OK. All good.
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping debugging symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install script...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: virtualbox_bin 3.1.6-1 x86_64 (Sun Apr 18 16:08:28 PDT 2010)
[jeff@Arch2009p2 virtualbox_bin]$ 

================================================================================================
================================================================================================


[root@Arch2009p2 virtualbox_bin]# pacman -U virtualbox_bin-3.1.6-1-x86_64.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [############################################################################] 100%
(1/1) installing virtualbox_bin                     [############################################################################] 100%
Building VirtualBox modules...
---------------------------------------------------------------------------
 You must agree to the following license in order to use this program:

VirtualBox Personal Use and Evaluation License (PUEL)

License version 7, September 10, 2008

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE PRODUCT (AS
DEFINED IN 1 BELOW) TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL
OF THE TERMS CONTAINED IN THIS VIRTUALBOX PERSONAL USE AND EVALUATION
LICENSE AGREEMENT ("AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY
DOWNLOADING OR INSTALLING THIS PRODUCT, YOU ACCEPT THE FULL TERMS OF
THIS AGREEMENT.

IF YOU ARE AGREEING TO THIS LICENSE ON BEHALF OF AN ENTITY OTHER THAN
AN INDIVIDUAL PERSON, YOU REPRESENT THAT YOU ARE BINDING AND HAVE THE
RIGHT TO BIND THE ENTITY TO THE TERMS AND CONDITIONS OF THIS AGREEMENT.

1 SUBJECT OF AGREEMENT. "Product", as referred to in this Agreement,
shall be the binary software package "Sun VirtualBox," which Product
allows for creating multiple virtual computers, each with different
operating systems ("Guest Computers"), on a physical computer with a
specific operating system ("Host Computer"), to allow for installing and
executing these Guest Computers simultaneously. The Product consists of
executable files in machine code for the Solaris, Windows, Linux, and
MacOSX operating systems as well as other data files as required by the
executable files at run-time and documentation in electronic form. The
Product includes all documentation and updates provided to You by Sun
under this Agreement and the terms of this Agreement will apply to all
such documentation and updates unless a different license is provided
with an update or documentation.

2 GRANT OF LICENSE. (1) Sun grants you a personal, non-exclusive,
non-transferable, limited license without fees to reproduce, install,
execute, and use internally the Product a Host Computer for your Personal
Use, Educational Use, or Evaluation. "Personal Use" requires that you use
the Product on the same Host Computer where you installed it yourself and
that no more than one client connect to that Host Computer at a time for
the purpose of displaying Guest Computers remotely. "Educational use" is
any use in an academic institution (schools, colleges and universities,
by teachers and students). "Evaluation" means testing the Product for a
reasonable period (that is, normally for a few weeks); after expiry of
that term, you are no longer permitted to evaluate the Product.

(2) The "VirtualBox Guest Additions" are a set of drivers and utilities
that are shipped as a subset of the Product for the purpose of being
installed inside a Guest Computer to improve its performance and
cooperation with the rest of the Product. In addition to and independent
of the rights granted by subsection 1, Sun allows you to install, execute,
copy and redistribute a) unmodified copies of the ISO installation medium
of the VirtualBox Guest Additions as shipped with the Product and b)
the VirtualBox Guest Additions together with the Guest Computer into
which they have been installed.

3 RESTRICTIONS AND RESERVATION OF RIGHTS. (1) Any use beyond the
provisions of 2 is prohibited. The Product and copies thereof provided
to you under this Agreement are copyrighted and licensed, not sold, to
you by Sun. Sun reserves all copyrights and other intellectual property
rights. This includes, but is not limited to, the right to modify,
make available or public, rent out, lease, lend or otherwise distribute
the Product. This does not apply as far as applicable law may require
otherwise or if Sun grants you additional rights of use in a separate
agreement in writing.

(2) You may not do any of the following: (a) modify the Product. However
if the documentation accompanying Product lists specific portions of
Product, such as header files, class libraries, reference source code,
and/or redistributable files, that may be handled differently, you may
do so only as provided in the documentation; (b) rent, lease, lend or
encumber the Product; (c) remove or alter any proprietary legends or
notices contained in the Product; or (d) decompile, or reverse engineer
the Product (unless enforcement of this restrictions is prohibited by
applicable law).

(3) The Product is not designed, licensed or intended for use in the
design, construction, operation or maintenance of any nuclear facility
and Sun and its licensors disclaim any express or implied warranty of
fitness for such uses.

(4) No right, title or interest in or to any trademark, service mark, logo
or trade name of Sun or its licensors is granted under this Agreement.

4 TERMINATION. The Agreement is effective on the Date you receive the
Product and remains effective until terminated. Your rights under this
Agreement will terminate immediately without notice from Sun if you
materially breach it or take any action in derogation of Sun's and/or its
licensors' rights to Product. Sun may terminate this Agreement should
any Product become, or in Sun's reasonable opinion likely to become,
the subject of a claim of intellectual property infringement or trade
secret misappropriation. Upon termination, you will cease use of, and
destroy, Product and confirm compliance in writing to Sun. Sections 3-9,
inclusive, will survive termination of the Agreement.

5 DISCLAIMER OF WARRANTY. TO THE EXTENT NOT PROHIBITED BY APPLICABLE
LAW, SUN PROVIDES THE PRODUCT "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
NON-INFRINGEMENT, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD
TO BE LEGALLY INVALID. The entire risk as to the quality and performance
of the Product is with you. Should it prove defective, you assume the
cost of all necessary servicing, repair, or correction. In addition, Sun
shall be allowed to provide updates to the Product in urgent cases. You
are then obliged to install such updates. Such an urgent case includes,
but is not limited to, a claim of rights to the Product by a third party.

6 LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW,
IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE,
PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR
PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY,
ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE PRODUCT,
EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no
event will Sun's liability to you, whether in contract, tort (including
negligence), or otherwise, exceed the amount paid by you for Product under
this Agreement. Some states do not allow the exclusion of incidental or
consequential damages, so some of the terms above may not be applicable
to you.

7 THIRD PARTY CODE. Portions of Product may be provided with notices and
open source licenses from communities and third parties that govern the
use of those portions, and any licenses granted hereunder do not alter
any rights and obligations You may have under such open source licenses,
however, the disclaimer of warranty and limitation of liability provisions
in this Agreement will apply to all the Product.

8 EXPORT REGULATIONS. All Product, documents, technical data, and any
other materials delivered under this Agreement are subject to U.S. export
control laws and may be subject to export or import regulations in other
countries. You agree to comply strictly with these laws and regulations
and acknowledge that you have the responsibility to obtain any licenses
to export, re-export, or import as may be required after delivery to you.

9 U.S. GOVERNMENT RESTRICTED RIGHTS. If Product is being acquired
by or on behalf of the U.S. Government or by a U.S. Government prime
contractor or subcontractor (at any tier), then the Government's rights
in Product and accompanying documentation will be only as set forth
in this Agreement; this is in accordance with 48 CFR 227.7201 through
227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48
CFR 2.101 and 12.212 (for non-DOD acquisitions).

10 MISCELLANEOUS. This Agreement is the entire agreement between you
and Sun relating to its subject matter. It supersedes all prior or
contemporaneous oral or written communications, proposals, representations
and warranties and prevails over any conflicting or additional terms
of any quote, order, acknowledgment, or other communication between
the parties relating to its subject matter during the term of this
Agreement. No modification of this Agreement will be binding, unless in
writing and signed by an authorized representative of each party. If any
provision of this Agreement is held to be unenforceable, this Agreement
will remain in effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this Agreement will
immediately terminate. Course of dealing and other standard business
conditions of the parties or the industry shall not apply. Place of
performance and legal venue shall be Santa Clara, California, the domicile
of Sun. Any action related to this Agreement will be governed by the law
of the State of California and controlling U.S. federal law. No choice
of law rules of any jurisdiction will apply.

---------------------------------------------------------------------------
WARNING: All config files need .conf: /etc/modprobe.d/framebuffer_blacklist.pacsave, it will be ignored in a future release.

---------------------------------------------------------------------------
 IMPORTANT NOTES:

- Run "vbox_build_module" as root every time your kernel is upgraded, to
  compile the module for the new kernel version.
- Add your user to the vboxusers group:
     gpasswd -a USERNAME vboxusers
- Add "vboxdrv" to the MODULES array in your "/etc/rc.conf"
- Add "vboxnetflt" to MODULES if you want Host Interface networking.
- Add "vboxnetadp" to MODULES if you want Host-Only networking.
- If USB does not work for you out-of-the-box, add the following line
  to "/etc/fstab":
     none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0
---------------------------------------------------------------------------
Optional dependencies for virtualbox_bin
    qt: for VirtualBox GUI
    sdl: for VBoxSDL and VirtualBox GUI

Last edited by jeff story (2010-04-26 06:03:46)


Check out my website for info on the Arch Linux Installer

Offline

#5 2010-04-26 11:37:09

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: VirtualBox Package Build Failed

Try the following command and check if the output is similar to the one below:

$ ldd /opt/VirtualBox/VirtualBox.so|grep SDL
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x00007f68f58b8000)
$ file /usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0: symbolic link to `libSDL-1.2.so.0.11.3'
$ file /usr/lib/libSDL-1.2.so.0.11.3 
/usr/lib/libSDL-1.2.so.0.11.3: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

Board footer

Powered by FluxBB