VirtualBox building from source
This post guide you thru the installation of VirtualBox base on my experience on Slackware 13.37. Several extra packages are required to build the VirtualBox from source.
OS: Slackware 13.37 64bit
Software: VirtualBox-4.1.8
Pre-requirement
- Install PAM for remote display authentication. If you are intend for using locally, you could safely skip this step.
- Install acpica
cd acpica/source/tools/acpibin INSTALLDIR = /usr/local/acpica/bin make make install /* install the binary to /usr/bin */ cd acpica/source/tools/acpiexec INSTALLDIR = /usr/local/acpica/bin make make install /* install the binary to /usr/bin */ cd acpica/source/tools/acpihelp INSTALLDIR = /usr/local/acpica/bin make make install /* install the binary to /usr/bin */ cd acpica/source/tools/acpinames INSTALLDIR = /usr/local/acpica/bin make make install /* install the binary to /usr/bin */ cd acpica/source/tools/acpisrc INSTALLDIR = /usr/local/acpica/bin make make install /* install the binary to /usr/bin */ cd acpica/source/tools/acpixtract INSTALLDIR = /usr/local/acpica/bin make make install /* install the binary to /usr/bin */ cd acpica/source/compiler INSTALLDIR = /usr/local/acpica/bin make make install /* install the binary to /usr/bin */
- speexdsp
./configure --prefix=/usr/local/speex make make install
- json-c
./configure --prefix=/usr/local/json-c --disable-static make make install
- pulseaudio
groupadd -g 182 pulse groupadd -g 183 pulse-access useradd -u 182 -g 182 -d /usr/local/pulseaudio -s /bin/false -c 'PulseAudio' pulse ./configure --prefix=/usr/local/pulseaudio make make install
- makeself
cd /usr/local/makeself sh ./makeself.run --keep --target /usr/local/makeself
- Install jdk from slackware package or from Oracle
Building
- Download the VirtualBox source and extract
export VBOX_JAVA_HOME=/usr/local/java ./configure --with-makeself=/usr/local/makeself/makeself.sh --disable-docs source ./env.sh kmk all
- Build package
kmk packing
- A ready run script for installation will located at ./out/linux.amd64/release/bin
- Running the script, will
- Build modules and install it at /lib/modules/2.6.37.6/misc/
- Create /etc/vbox/vbox.cfg
- All files in /opt/VirtualBox
- Symbolic link executable from /usr/bin
Install extension pack
- Download the extension pack from VirtualBox
VBoxManage extpack install <the name of the>.vbox-extpack
Running
You could start your VirtualBox by running VirtualBox.
Outstanding issues
- Window addition won’t be compile, as you need to building by Window