编译安装VirtualBox总结.doc_第1页
编译安装VirtualBox总结.doc_第2页
编译安装VirtualBox总结.doc_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

在ubuntu下编译安装virtualbox总结by:夏超俊 第一步:下载源码包,并解压,得到VirtualBox-4.1.4_OSE文件夹 第二步:搭建编译环境: 1.所需要的依赖条件: GCC 3.3.3 or later (except for the GCC 4.0.x series). GCC 4.4.1 is recommended. as86 (real mode assembler, usually part of the dev86 or bin86 package.) bcc (Bruce Evans C Compiler; often part of the dev86 package) Note: The bcc compiler contained in openSUSE10.2 as part of dev86-0.16.0-218 is known to generate broken code. Unfortunately, bcc -v is not supported. IASL (Intel ACPI compiler) xsltproc (libxslt, XML style sheet processor) libxml2 (required for VBox version = 1.6, XML file handling) libxslt1 (required for VBox version = 1.6, XML file transformation) libXcursor (required to support color mouse pointers in the guest) libxinerama librandr Qt 4.x.y (with x = 4, including the OpenGL part, required for VBox version 3.0) libIDL libSDL (SDL frontend) ALSA (audio backend) PulseAudio (audio backend) libhal (detect host floppy/DVD) libcap (CAP_NET_RAW for ICMP sockets in NAT) libpam0g (PAM support for the guest additions, required for VBox version = 3.2) python2.5 or python2.6 (Python bindings) gsoap (webservice API, version 2.7.9f or higher) Xmu (for OpenGL) Mesa (for OpenGL) cURL (version 7.16.1 or higher, required for VBox version = 3.0) makeself (for creating the generic installer package, required for VBox version = 4.0) On 64-bit systems you need the following packages as well: ia32-libs (various libraries needed for compiling the 32-bit guest additions) libc6-dev-i386 (libc6 i386 development headers) lib32gcc1 (gcc support for i386) gcc-multilib (gcc support for i386) lib32stdc+6 (libstdc+ for i386) g+-multilib (g+ support for i386) 2.安装依赖的包: apt-get install gcc g+ bcc iasl xsltproc uuid-dev zlib1g-dev libidl-dev libsdl1.2-dev libxcursor-dev libasound2-dev libstdc+5 (libstdc+5没成功) libhal-dev libpulse-dev libxml2-dev libxslt1-dev python2.5-dev(没成功) libqt4-dev qt4-dev-tools libcap-dev libxmu-dev mesa-common-dev libglu1-mesa-dev linux-kernel-headers libcurl4-openssl-dev libpam0g-dev libxrandr-dev libxinerama-dev libqt4-opengl-dev makeself用该命令之后,可能有几个包没有安装成功,需要根据后面configure的提示结合网络资料解决。第三步:Building1.到解压出的文件夹的根目录下:运行:./configure disble-hardening disable-java disable-docs(这个选项很重要,不这样就有很多问题) configure的过程中提示:a.缺少SDL,解决: sudo apt-get install libsdl1.2-dev(比较大,10M左右) 还有一些附加包,看提示要不要装:libsdl-image1.2-dev,libsdl-mixer1.2-dev, libsdl-ttf2.0-dev,libsdl-gfx1.2-dev。b.python找不到(原因是:系统python是2.6,没有2.5的python-dev),解决: sudo apt-get install python-devc.找不到libcap,解决: sudo aot-get install libcap-dev2.上一步完成之后会提示“Enjoy!”根目录下新增AutoConfig.kmk和env.sh。 运行:source ./env.sh3.build a release package,运行:kmk all4.根目录下会出现一个out文件夹,运行:cd out/linux.x86/release/bin/srcmakesudo make installcd .即编译安装完成5.安装模块:sudo modprobe vboxdrvsudo modprobe vboxnetadpsudo modprobe vboxnetfltsudo modprobe vboxpci6.此后即可在out/linux.x86/release/bin 文件夹下,运行:./VirtualBox第四步:用户与权限问题:1.添加vboxusers用户组,并设置权限,并将设备文件所属用户组设为vboxusersgroupaddvboxusers#Requiresroot.usermod-a-GvboxusersUSERNAME#USERNAMEisyouraccountusernamewhoshouldhaveaccessestoVirtualBox,forexample:usermod-a-Gvboxusersrunsisichownroot:vboxusers/dev/vboxdrv2.打开virtualbox时若出现“kernel drive not access”运行:chmod 777 /dev/vboxdrv第五步:使用中的问题1.虚拟硬盘的设置:redhat默认的IDE硬盘,而Ubuntu默认的是SATA硬盘。2.网络选项,要选择桥接方式3.可能每次重启都需要从新安装模块,需要解决模块自动加载4.需要把bin目录加到环境变量,使其可以在任意目录下执行5.开机自动加载模块:编

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论