LinuxSir.cn,穿越时空的Linuxsir!

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

vmware无法编译

[复制链接]
发表于 2006-1-19 21:06:09 | 显示全部楼层 |阅读模式
我的kernel是4.0.1的gcc编译的,现在系统的gcc是4.0.2的,我执行vmware的配置脚本时出现如下问题,请问我可以如何解决
[root@winux lfs]# /usr/bin/vmware-config.pl
Making sure services for VMware Workstation are stopped.

Stopping VMware services:
   Virtual machine monitor                                 [  OK  ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.11-1.1369_FC4-i686/include /

The directory of kernel headers (version 2.6.11-1.1369_FC4) does not match your
running kernel (version 2.6.14-1.1656_FC4).  Even if the module were to compile
successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
发表于 2006-1-20 01:17:02 | 显示全部楼层
The directory of kernel headers (version 2.6.11-1.1369_FC4) does not match your running kernel (version 2.6.14-1.1656_FC4).

内核版本不对,你既然用2.6.14-1,应该也有源码吧? 把 /usr/src/kernels/2.6.11-1.1369_FC4-i686/include 这个目录改一下.
回复 支持 反对

使用道具 举报

发表于 2006-1-20 06:31:22 | 显示全部楼层
楼上正解。
要么重新下载2.6.14-1.1656_FC4的内核源码;要么用2.6.11-1.1369_FC4的源码编译一个新内核。
总之内核与源码的版本要一致。
回复 支持 反对

使用道具 举报

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

本版积分规则

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