Vmware server vmnet模块编译问题

Vmware server vmnet模块编译问题

我正在尝试按照此指南在 Ubuntu 服务器 10.04.3 64 位版本上安装 vmware server 2.02https://help.ubuntu.com/community/VMware/Server。但是当我执行脚本时,它会在出现错误后结束

/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:121: warning: data definition has no type or storage class
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:121: warning: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:121: warning: parameter names (without types) in function declaration
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:82: warning: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:82: warning: parameter names (without types) in function declaration
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c: In function ‘VNetFilter_HandleUserCall’:
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:1089: error: ‘filterIoctlSem’ undeclared (first use in this function)
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:1089: error: (Each undeclared identifier is reported only once
/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:1089: error: for each function it appears in.)
make[2]: *** [/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only/filter.o] Error 1
make[1]: *** [_module_/home/cfpte/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmnet-only] Error 2
make: *** [vmnet.ko] Error 2

修补 vmnet 模块后,编译它时出现问题。:(

有人能指出正确的方向来解决这个问题吗?

问候。

答案1

类似的问题已发布于Ubuntu论坛适合您的 Ubuntu 版本。

建议遵循链接帖子- 我在下面复述了这一点:

从vmware网站下载VMware-server-2.0.2-203138.x86_64.tar.gz并放在/usr/src下(需要在VMware网站注册后才可以下载)

下载下面的安装文件并将其解压到/usr/src

cd /usr/src
wget http://www.troublenow.org/files/vmware/vmware2.0.2-on-debian6.0.1.tar.gz
tar xvzf vmware2.0.2-on-debian6.0.1.tar.gz
cd /usr/src/vmware2
sh install-vmware-2.0.2.sh

这将解压文件、修补它们并启动 vmware 安装。回答 vmware 安装过程中的所有问题,安装应该完成。

现在重新启动服务器,您就可以开始了。

上述vmware2.0.2-on-debian6.0.1.tar.gz文件内容如下:

00-vmware-2.6.32_functional.diff
01-vmware-2.6.32_cosmetic.diff
02-vmnet-include.diff
install-vmware-2.0.2.sh
patch-vmware_2.6.3x.sh
vmware-config.pl.diff

相关内容