[已解决]关于vmware6.03在hardy上的安装,提示找不到C header files。

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
brhhk
帖子: 124
注册时间: 2007-02-24 18:59

[已解决]关于vmware6.03在hardy上的安装,提示找不到C header files。

#1

帖子 brhhk » 2008-05-06 18:45

安装到编译的那一步

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

我修改了自己的c header目录/usr/src/linux-headers-2.6.24-17-generic/include

但提示The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.24-17-generic). Even if the module were to compile successfully, it would not load into the running kernel.

我用uname -r 查看内核版本

brhhk@brhhk-laptop:~$ uname -r

2.6.24-17-generic

确实是同一个版本

不知道是什么原因呢?

我把目录列出来,大家帮我看一下需要的文件完整吗?还是目录不对?我提供的路径是/usr/src/linux-headers-2.6.24-17-generic/include

brhhk@brhhk-laptop:/usr/src/linux-headers-2.6.24-17-generic/include$ ls

acpi asm-frv asm-mips asm-sparc crypto net xen
asm asm-generic asm-parisc asm-sparc64 Kbuild pcmcia
asm-alpha asm-h8300 asm-powerpc asm-um keys rdma
asm-arm asm-ia64 asm-ppc asm-v850 linux rxrpc
asm-avr32 asm-m32r asm-s390 asm-x86 math-emu scsi
asm-blackfin asm-m68k asm-sh asm-xtensa media sound
asm-cris asm-m68knommu asm-sh64 config mtd video
上次由 brhhk 在 2008-05-08 16:07,总共编辑 1 次。
头像
吴广德
帖子: 347
注册时间: 2006-10-26 9:24
系统: Ubuntu 18.04 LTS
来自: 中国-广西-南宁

#2

帖子 吴广德 » 2008-05-07 7:42

手动装一下GCC,看能不能解决

sudo apt-get install gcc
Ubuntu 18.04 LTS使用中......

主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 4 = 32G
硬盘:60G SSD(/) + 1T HD(/home)
显示器:Philips 274E5Q
brhhk
帖子: 124
注册时间: 2007-02-24 18:59

#3

帖子 brhhk » 2008-05-07 8:00

brhhk@brhhk-laptop:~$ sudo apt-get install gcc
[sudo] password for brhhk:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
读取状态信息... 完成
gcc 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
brhhk
帖子: 124
注册时间: 2007-02-24 18:59

#4

帖子 brhhk » 2008-05-07 8:31

终于找到原因了,是需要装一个补丁,针对内核的。

详细请参考http://forum.ubuntu.org.cn/viewtopic.php?t=104646&postdays=0&postorder=asc&start=0
回复