LinuxSir.cn,穿越时空的Linuxsir!

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

vmware安不上?

[复制链接]
发表于 2006-4-6 00:46:48 | 显示全部楼层 |阅读模式
我用的是:VMware-workstation-5.5.1-19175.tar.gz版。解压后运行 ./vmware-install.pl程序,提示如下:
上面都正常,换回车都可以过去,到了下面这一步
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] 按回车

提示如下:
The path "/usr/src/linux/include" is a kernel header file directory, but it doesnot contain the file "linux/version.h" as expected.  This can happen if the
kernel has never been built, or if you have invoked the "make mrproper" command
in your kernel directory.  In any case, you may want to rebuild your kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]  输入:/usr/src/linux-headers-2.6.16-1-k7/include

又提示如下:
The kernel defined by this directory of header files does not have the same
address space size as your running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

老是卡在这一步,不知道应该怎么办了?
发表于 2006-4-6 08:35:26 | 显示全部楼层
你必须安装上与你内核相对应的头文件linux-header,还有,你必须使用与编译内核相同的版本的gcc,目前最新的内核好象是用gcc-4编译的。
回复 支持 反对

使用道具 举报

发表于 2006-4-6 11:20:37 | 显示全部楼层
Post by springwind426
你必须安装上与你内核相对应的头文件linux-header,还有,你必须使用与编译内核相同的版本的gcc,目前最新的内核好象是用gcc-4编译的。

那我apt-get upgrade 后,gcc 不是更新了嘛,那里还有与编译内核相同的版本的gcc呢?请教如何操作呢?

谢谢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-6 11:26:35 | 显示全部楼层
同意,楼上的意见,应该怎么办?
回复 支持 反对

使用道具 举报

发表于 2006-4-6 11:30:49 | 显示全部楼层
运行gcc --version就可以看版本了。
实际上/usr/bin/gcc 和 /usr/bin/g++都是符号链接,只要将其重新链接到指定的版本就可以了。

我的系统中:
ls -l /usr/bin/gcc*
lrwxrwxrwx  1 root root     7 2006-02-18 11:36 /usr/bin/gcc -> gcc-4.0
-rwxr-xr-x  1 root root 69960 2004-03-10 14:47 /usr/bin/gcc-2.95
-rwxr-xr-x  1 root root 81072 2006-03-18 23:08 /usr/bin/gcc-3.3
-rwxr-xr-x  1 root root 88848 2006-01-23 02:36 /usr/bin/gcc-3.4
-rwxr-xr-x  1 root root 93712 2006-03-12 00:57 /usr/bin/gcc-4.0
lrwxrwxrwx  1 root root    10 2006-01-05 15:40 /usr/bin/gccbug -> gccbug-4.0
-rwxr-xr-x  1 root root 15963 2006-03-18 23:00 /usr/bin/gccbug-3.3
-rwxr-xr-x  1 root root 16110 2006-01-23 02:34 /usr/bin/gccbug-3.4
-rwxr-xr-x  1 root root 16234 2006-03-12 00:55 /usr/bin/gccbug-4.0
ls -l /usr/bin/g++*
lrwxrwxrwx  1 root root     7 2006-02-18 11:36 /usr/bin/g++ -> g++-4.0
-rwxr-xr-x  1 root root 69992 2004-03-10 14:47 /usr/bin/g++-2.95
-rwxr-xr-x  1 root root 84720 2006-03-18 23:08 /usr/bin/g++-3.3
-rwxr-xr-x  1 root root 88848 2006-01-23 02:35 /usr/bin/g++-3.4
-rwxr-xr-x  1 root root 97136 2006-03-12 00:56 /usr/bin/g++-4.0

现在我使用的就是vmware-5.5
回复 支持 反对

使用道具 举报

发表于 2006-4-6 12:00:05 | 显示全部楼层
Post by coldcoffee
我用的是:VMware-workstation-5.5.1-19175.tar.gz版。解压后运行 ./vmware-install.pl程序,提示如下:
上面都正常,换回车都可以过去,到了下面这一步
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] 按回车

提示如下:
The path "/usr/src/linux/include" is a kernel header file directory, but it doesnot contain the file "linux/version.h" as expected.  This can happen if the
kernel has never been built, or if you have invoked the "make mrproper" command
in your kernel directory.  In any case, you may want to rebuild your kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]  输入:/usr/src/linux-headers-2.6.16-1-k7/include

又提示如下:
The kernel defined by this directory of header files does not have the same
address space size as your running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

老是卡在这一步,不知道应该怎么办了?



一般情况下在debian安装vmware是不会有太多问题的。但如果内核升级到2.6.16就有问题了,我在vmware的官方论坛找到说workstation5.5不能工作在>2.6.15的内核下,晕呀!(参考:http://www.vmware.com/community/thread.jspa?threadID=36280&tstart=0)你会遇到The kernel defined by this directory of header files does not have the same address space size as your running kernel.
的问题。

解决办法是,可以去http://ftp.cvut.cz/vmware/下载vmware-any-any-updateXX.tar.gz,运行runme.pl修正vmware-config.pl的问题。

参考:
http://www.vmware.com/community/thread.jspa?messageID=373014&#373014
http://www.linuxsir.cn/bbs/showthread.php?p=1414570
回复 支持 反对

使用道具 举报

发表于 2006-4-6 12:06:09 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2006-4-6 12:52:30 | 显示全部楼层
可以先安装module-assistant
之后运行命令m-a prepare,就可以把头文件等等的必备工作做完了
http://www.linuxsir.cn/bbs/showthread.php?t=241340
回复 支持 反对

使用道具 举报

发表于 2006-4-6 16:27:30 | 显示全部楼层
deb http://www.fbriere.net/debian/dists/unstable ./

add this to sources.list, than
sudo apt-get install vmware4
回复 支持 反对

使用道具 举报

发表于 2006-4-6 23:06:30 | 显示全部楼层

装了3个小时要疯了,装上了无法运行。。。。帮忙看看

Post by quhan
deb http://www.fbriere.net/debian/dists/unstable ./

add this to sources.list, than
sudo apt-get install vmware4

装上vmware能起动 ,但是在运行机器是提示
Version mismatch with vmmon module: expecting 81.0, got 137.0.
You have an incorrect version of the `vmmon' kernel module.
Try reinstalling VMware Workstation.

我的内核 2.6.16-1-686  ,vmware-modules-2.6.16-1-686也装了 。。。怎么了阿。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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