Searching for GCC.....The path " " is not valid path to the gcc binary.Would you like to change it ? [yes] "回车后,显示为:“ What is the location of the gcc program on your machine ?"这是如果输入本机的gcc路径 /usr/bin/gcc, 也会显示错误。
在vm中的Red Hat系统中安装vmware tools时,总是遇到两个问题,而我是Linux系统的初学者,解决不了,又没有百度到正确的答案。请高手指点,在安装vmware tools前需要怎么样做好充分的准备,当遇到这样的问题时解决思路又是怎样的?
两个问题的提示为:
问题1:
“Searching for GCC.....
The path " " is not valid path to the gcc binary.
Would you like to change it ? [yes] "
回车后,显示为:
“ What is the location of the gcc program on your machine ?"
这是如果输入本机的gcc路径 /usr/bin/gcc, 也会显示错误。
望高手不吝赐教,谢过了!!!
问题2:
” Searching for a valid kernel header path.....
The path " " is not a valid path to the 2.4.20-8 kernel headers.
Would you like to change it ? [yes]"
原因:
RedHat内核版本的头文件的位置发生了变化,
导致之前,相对旧的VMWare Tools,找不到对应的头文件,因此而报错。
解决办法:
用当前,实际上已经存在的头文件,做个软链接:
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
就可以了。