LinuxSir.cn,穿越时空的Linuxsir!

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

安装vwmare5.5.1时出现的问题,关于gcc

[复制链接]
发表于 2006-9-6 18:08:07 | 显示全部楼层 |阅读模式
安装过程及错误提示如下:
Your kernel was built with "gcc" version "4.0.4", while you are trying to use
"/usr/bin/gcc" version "4.1.2". This configuration is not recommended and VMware
Workstation may crash if you'll continue. Please try to use exactly same
compiler as one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.1.2" anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.16-2-686/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 5.5.x.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmmon-only'
make -C /lib/modules/2.6.16-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.16-2-686'
/tmp/vmware-config2/vmmon-only/Makefile:127: *** Inappropriate build environment: you wanted to use gcc version 4.1.2 while kernel attempts to use gcc version 4.0.4.
/tmp/vmware-config2/vmmon-only/Makefile:129: *** For proper build you'll have to replace  gcc-4.0 -m32 with symbolic link to /usr/bin/gcc。  停止。
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.16-2-686'
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.


是不是我的gcc4.1.2的版本太高,要换成gcc4.0.4的版本才行啊?
发表于 2006-9-7 16:17:09 | 显示全部楼层

使用sid的2。6。17的内核就可以了

我遇到同样的问题。
使用sid的2。6。17的内核就可以了。
回复 支持 反对

使用道具 举报

发表于 2006-9-7 19:50:55 | 显示全部楼层
应该是要换成gcc4.0.4的版本才行
回复 支持 反对

使用道具 举报

发表于 2006-9-7 20:14:19 | 显示全部楼层
编译内核的编译器的版本要和编译vmware的版本一致。目前,Debian etch的2.6.16内核是用gcc-4.0编译的,而sid的2.6.17是用gcc-4.1。因此要么换成匹配的版本(kernel2.6.16-gcc4.0或kernel2.6.17-gcc4.1),要么用默认编译器重新编译内核。
回复 支持 反对

使用道具 举报

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

本版积分规则

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