linux的vmwaretools 是:vmware-tools-distrib,版本不知道,大小是198MB
系统是debian
tools挂在到cdrom后,有文件
bin\ doc\ etc\ FILES INSTALL installer\ lib\ vmware-install.pl
执行http://blog.chinaunix.net/vmware-install.pl 提示
bash: http://blog.chinaunix.net/vmware-install.pl: /usr/bin/perl: bad interpreter: 权限不够
换成root,su后,还是。
得了把,perl vmware-install.pl
等了一会,开始运行。
前面几个都没问题,回车即可。
CU还限制代码文字么,少了一段,继续??
'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.3.2" anyway? [no] yes
#
#没有办法,自动安装的gcc版本和系统不相同也是正常的,又不是我编译的系统
#
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 not an existing directory.
#
#没有内核的头文件,安装 apt-get install build-essential kernel-headers-`uname -r`
#前面的build-essential不知道是干什么用的。我的uname -r是2.6.26-2-686
#(安装记录看最后)
#
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.26-2-common/include
The path "/usr/src//linux-headers-2.6.26-2-common/include" is a kernel header
file directory, but it does not 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]
#
#我傻了,缺少一个version.h文件,我那找去阿,自己touch一个先。
#
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.26-2-common/include
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.26-2-686). 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]
#
#接下来怎么办?请求帮助
#
#
#
#
#
补充:
这是安装build-essential的记录
安装kernel-headers
标签:kernel,src,Linux,usr,linux,include,tools,your,vmware From: https://blog.51cto.com/yetaotao/5796913