LinuxSir.cn,穿越时空的Linuxsir!

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

安装vmware,提示/usr/src/linux/include不存在

[复制链接]
发表于 2005-11-4 23:49:27 | 显示全部楼层 |阅读模式
我是用suse10.0 1dvd刻盘装的,看提示,似乎是指没有安装源代码树

我找乐dvd下所有目录,没有源码。这个1dvd版本没有源代码吗?
vm的这个提示是否就是必须需要安装源代码?
如何下载这个源代码呢?
 楼主| 发表于 2005-11-5 09:47:19 | 显示全部楼层
在1dvd的版本中,找到kernel-source并安装(207.73M)。
安装后有/usr/src/linux/include目录,有下列提示,安装无法完成。
You must read and accept the End User License Agreement to continue.
Press enter to display it.


Do you accept? (yes/no)

The answer "" is invalid.  It must be one of "y" or "n".

Do you accept? (yes/no) y

Thank you.

Configuring fallback GTK+ 2.4 libraries.

***
* Updating MIME database in /usr/share/mime...
***
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]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /usr/src/linux/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.13-15'
Makefile:494: .config: 没有那个文件或目录

  WARNING: Symbol version dump /usr/src/linux-2.6.13-15/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/./include/vmware.h:24,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.c:44:
/tmp/vmware-config0/vmmon-only/./include/vm_basic_defs.h:208:5: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config0/vmmon-only/./include/vcpuset.h:56,
                 from /tmp/vmware-config0/vmmon-only/./include/modulecall.h:23,
                 from /tmp/vmware-config0/vmmon-only/./common/vmx86.h:18,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.h:15,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:54:5: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config0/vmmon-only/./include/vm_asm.h:23,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.c:48:
/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm.h:48:5: warning: "_MSC_VER" is not defined
/bin/sh: scripts/basic/fixdep: 没有那个文件或目录
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.13-15'
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config0/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.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-5 09:55:34 | 显示全部楼层
cp /usr/src/linux-2.6.13-15-obj/i386/default/Module.symvers ../linux-2.6.13-15,
上面错误信息没有“ WARNING: Symbol version dump /usr/src/linux-2.6.13-15/Module.symvers
is missing; modules will have no dependencies and modversions.”,其他的信息没有变化
回复 支持 反对

使用道具 举报

发表于 2005-11-5 19:46:02 | 显示全部楼层
在9.3中重新编译一下当前内核
就可以得到缺失的相关文件
可以安装成功

低版本的vmware在suse10不能安装成功
你可以选择安装补丁
或者安装更高版本的vmware
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-6 11:49:29 | 显示全部楼层
等一段时间出新版本再装
vmware 5.0看来不行
回复 支持 反对

使用道具 举报

发表于 2005-11-12 02:30:50 | 显示全部楼层
/lib/modules/2.6.8-2-386/build/include/
回复 支持 反对

使用道具 举报

发表于 2005-11-12 02:32:14 | 显示全部楼层
Post by zj21cn
等一段时间出新版本再装
vmware 5.0看来不行



这么快就不行了?

如果没有这目录,那就安装kernel-headers-2.6.8-2 及相应build
回复 支持 反对

使用道具 举报

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

本版积分规则

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