LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2354|回复: 9

编译virtualbox的问题

[复制链接]
发表于 2007-4-11 10:08:17 | 显示全部楼层 |阅读模式
我现在用的是zenwalk4.4.1,因为直接安装virtualbox的预编译包并不能运行,所以就想自己编译,但是编译时说bcc不存在,请问那个软件包有bcc.

错误提示:
Checking for environment: Determined linux.x86, OK.
Checking for kBuild: found, OK.
Checking for gcc: found version 3.4.6, OK.
Checking for as86: found version 0.16.15, OK.
Checking for bcc:
  ** bcc (variable BCC) not found!

virtualbox官方提示编译所需的文件:
GCC 3.2.3 or later
as86 (real mode assembler, usually part of the dev86 or bin86 package)
bcc (Bruce Evans C Compiler; often part of the dev86 package)
IASL (Intel ACPI compiler)
xsltproc (libxslt, XML style sheet processor)
libxerces (Xerces XML parser; the C++, not the Java version)
libxalan (Xalan XSL library, depends on Xerces; again, the C++, not the Java version)
libXcursor (required to support color mouse pointers in guest)
Qt 3.3.x (with x >= 5 if possible)
libIDL
libSDL
ALSA

谢谢!



按照该页的指示,艰难万分的编译成功了,可用了一会觉得不是很好用,又没再用了,郁闷。。。。。
http://www.linuxquestions.org/questions/showthread.php?t=519563
发表于 2007-4-15 03:45:37 | 显示全部楼层
编译vbox超郁闷的,一大堆古老的依赖关系.我解决了依赖关系也没有编译成功,最后还是用的2进制包,依赖包可以去debian网站上找,把deb转成tgz.intallpkg就可以了。
回复 支持 反对

使用道具 举报

发表于 2007-4-15 13:07:54 | 显示全部楼层
编译内核时需要打开哪些项才能支持virtualbox?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-24 19:55:03 | 显示全部楼层
Post by molucule
编译内核时需要打开哪些项才能支持virtualbox?

这我也不知道阿,虽然我用的是自己编译的内核,可我也只是加了一些要得功能和去除一些不许要的而已,但是我的是可运行virtualbox的内核,下面是我的内核编译文件,你看看吧,希望对你有帮助.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2007-4-25 00:35:53 | 显示全部楼层
这个偶已经搞定了,内核不用额外操心。
升级内核后,virtualbox的模块要重新编译一下。
回复 支持 反对

使用道具 举报

发表于 2007-4-25 11:32:56 | 显示全部楼层
请问什么事virtualbox,有什么用?
请问如何把deb转tgz
谢谢
回复 支持 反对

使用道具 举报

发表于 2007-4-25 23:53:10 | 显示全部楼层
virtualbox是一个虚拟机
alien -t 把deb转成tgz
回复 支持 反对

使用道具 举报

发表于 2007-4-26 01:00:51 | 显示全部楼层
我在一台机器上能够使用 Host Interface 方式连接网络:
开机并启动 VBox 后的接口情况是这样的
  1. hzg@darkstar:~$ ifconfig
  2. br0       Link encap:Ethernet  HWaddr 00:13:D3:98:DA:72
  3.           inet addr:10.26.17.43  Bcast:10.26.17.255  Mask:255.255.255.0
  4.           inet6 addr: fe80::213:d3ff:fe98:da72/64 Scope:Link
  5.           UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:3027 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:2262 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:0
  9.           RX bytes:1069933 (1.0 MiB)  TX bytes:321565 (314.0 KiB)

  10. eth0      Link encap:Ethernet  HWaddr 00:13:D3:98:DA:72
  11.           inet6 addr: fe80::213:d3ff:fe98:da72/64 Scope:Link
  12.           UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
  13.           RX packets:5792 errors:0 dropped:0 overruns:0 frame:0
  14.           TX packets:4440 errors:0 dropped:0 overruns:0 carrier:0
  15.           collisions:0 txqueuelen:1000
  16.           RX bytes:2339820 (2.2 MiB)  TX bytes:589189 (575.3 KiB)
  17.           Interrupt:10

  18. lo        Link encap:Local Loopback
  19.           inet addr:127.0.0.1  Mask:255.0.0.0
  20.           inet6 addr: ::1/128 Scope:Host
  21.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  22.           RX packets:13487 errors:0 dropped:0 overruns:0 frame:0
  23.           TX packets:13487 errors:0 dropped:0 overruns:0 carrier:0
  24.           collisions:0 txqueuelen:0
  25.           RX bytes:1748740 (1.6 MiB)  TX bytes:1748740 (1.6 MiB)

  26. tap0      Link encap:Ethernet  HWaddr 32:76:B2:A7:74:D2
  27.           inet6 addr: fe80::3076:b2ff:fea7:74d2/64 Scope:Link
  28.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  29.           RX packets:2178 errors:0 dropped:0 overruns:0 frame:0
  30.           TX packets:2446 errors:0 dropped:0 overruns:0 carrier:0
  31.           collisions:0 txqueuelen:500
  32.           RX bytes:250860 (244.9 KiB)  TX bytes:1195316 (1.1 MiB)

  33. tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
  34.           inet addr:172.16.0.6  P-t-P:172.16.0.5  Mask:255.255.255.255
  35.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  36.           RX packets:127 errors:0 dropped:0 overruns:0 frame:0
  37.           TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
  38.           collisions:0 txqueuelen:100
  39.           RX bytes:17084 (16.6 KiB)  TX bytes:19283 (18.8 KiB)

  40. hzg@darkstar:~$
复制代码

  1. hzg@darkstar:~$ brctl show br0
  2. bridge name     bridge id               STP enabled     interfaces
  3. br0             8000.0013d398da72       no              eth0
  4.                                                         tap0
复制代码


成功后如法炮制,在另外一台机器上却无法启动 VBox, 错误显示无法初始化网络接口设备。

这俩台机器都安装了 Slackware 11.0 + VBox 1.3.8,有相同的软件配置,唯一不同的是:
成功使用桥接上网的机器内核版本为:
  1. hzg@darkstar:~$ uname -a
  2. Linux darkstar 2.6.17.13 #1 Sat Sep 9 01:11:49 CDT 2006 i686 pentium4 i386 GNU/Linux
复制代码


而失败的这台主机内核版本为:
  1. hzg@CP_B:~$ uname -a
  2. Linux CP_B 2.6.19-smp #1 SMP Sat Jan 27 22:13:49 CST 2007 i686 i686 i386 GNU/Linux
复制代码


请问 VBox 桥接上网能否成功是否跟核心版本有关系?
回复 支持 反对

使用道具 举报

发表于 2007-4-27 13:00:12 | 显示全部楼层
像vmware一样可以装其他操作系统的虚拟机?还是像wine一样的?
回复 支持 反对

使用道具 举报

发表于 2007-4-27 13:24:19 | 显示全部楼层
和 vmware 一样虚拟一台机器,并在其中安装操作系统
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表