資源描述:
《編譯安裝virtualbox總結(jié)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫。
1、在ubuntu下編譯安裝virtualbox總結(jié)by:夏超俊第一步:下載源碼包,并解壓,得到VirtualBox-4.1.4_OSE文件夾第二步:搭建編譯環(huán)境:1.所需要的依賴條件:·GCC3.3.3orlater(exceptfortheGCC4.0.xseries).GCC4.4.1isrecommended.·as86(realmodeassembler,usuallypartofthedev86orbin86package.)·bcc(BruceEvansCCompiler;oftenpartofthe
2、dev86package)Note:ThebcccompilercontainedinopenSUSE10.2aspartofdev86-0.16.0-218isknowntogeneratebrokencode.Unfortunately,bcc-visnotsupported.·IASL(IntelACPIcompiler)·xsltproc(libxslt,XMLstylesheetprocessor)·libxml2(requiredforVBoxversion>=1.6,XMLfilehandling
3、)·libxslt1(requiredforVBoxversion>=1.6,XMLfiletransformation)·libXcursor(requiredtosupportcolormousepointersintheguest)·libxinerama·librandr·Qt4.x.y(withx>=4,includingtheOpenGLpart,requiredforVBoxversion>3.0)·libIDL·libSDL(SDLfrontend)·ALSA(audiobackend)·Pul
4、seAudio(audiobackend)·libhal(detecthostfloppy/DVD)·libcap(CAP_NET_RAWforICMPsocketsinNAT)·libpam0g(PAMsupportfortheguestadditions,requiredforVBoxversion>=3.2)·python2.5orpython2.6(Pythonbindings)·gsoap(webserviceAPI,version2.7.9forhigher)·Xmu(forOpenGL)·Mesa
5、(forOpenGL)·cURL(version7.16.1orhigher,requiredforVBoxversion>=3.0)·makeself(forcreatingthegenericinstallerpackage,requiredforVBoxversion>=4.0)On64-bitsystemsyouneedthefollowingpackagesaswell:·ia32-libs(variouslibrariesneededforcompilingthe32-bitguestadditio
6、ns)·libc6-dev-i386(libc6i386developmentheaders)·lib32gcc1(gccsupportfori386)·gcc-multilib(gccsupportfori386)·lib32stdc++6(libstdc++fori386)·g++-multilib(g++supportfori386)2.安裝依賴的包:apt-getinstallgccg++bcciaslxsltprocuuid-devzlib1g-devlibidl-devlibsdl1.2-devl
7、ibxcursor-devlibasound2-devlibstdc++5(libstdc++5沒成功)libhal-devlibpulse-devlibxml2-devlibxslt1-devpython2.5-dev(沒成功)libqt4-devqt4-dev-toolslibcap-devlibxmu-devmesa-common-devlibglu1-mesa-devlinux-kernel-headerslibcurl4-openssl-devlibpam0g-devlibxrandr-de
8、vlibxinerama-devlibqt4-opengl-devmakeself用該命令之后,可能有幾個(gè)包沒有安裝成功,需要根據(jù)后面configure的提示結(jié)合網(wǎng)絡(luò)資料解決。第三步:Building1.到解壓出的文件夾的根目錄下:運(yùn)行:./configure–disble-hardening–disable-java–disable-docs(這個(gè)選項(xiàng)很重要,不這樣就有很多問題)co