常用软件推荐—— 浏览器:FireFox; 压缩软件:7-zip; 图像处理:Paint.NET、GIMP; 建议少去用那些经常招惹病毒的IE、盗版的WinRAR、Photoshop等! 如果你有空闲时间的话,不妨学学GNU/Linux,第一次安装可以去试试Debian GNU/Linux,中文化较好的红旗 Linux、Everest Linux、Hiweed Linux、Magic Linux等等也很不错!

安裝vmware-tools時遇到的問題

上一篇 / 下一篇  2008-03-20 07:36:00 / 天气: 晴朗 / 心情: 平静 / 个人分类:缤纷网络

今天同事在XP里安裝了VMware(5.5.1 build-19175) ,然后在里面安裝了紅旗6 SP1,內核版本是2.6.23.1-4,我給他安裝vmware-tools,運行vmware-config.pl時遇到問題,雖然給了正確的kernel headers文件目錄,但還是提示類似這樣的錯誤:
 
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.23.1-4). Even if the module were to compile successfully, it would not load into the running kernel.

后來在網上搜索到這篇:
http://www.atlink.it/~conti/2007/12/19/vmware-uts_release/

Well, VMWare tools sometimes fails to install into a Linux guest with recent kernel.

The error is something like this: The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel.

With this bug you cannot sync the time with your hosting server, automate shutdown tasks, etc… This problem exist because the kernel source code structure is changed in recent kernels (I guess > 2.6.18). The VMWare tools installation scrīpt is looking for the string “#define UTS_RELEASE $kernel_number” into /usr/src/kernels/$(uname -r)*/include/linux/version.h but the UTS_RELEASE variable is now into the file utsrelease.h.

To fix this, you can patch the VMWare tools installation scrīpt or just add the content of utsrelease.h to version.h. I suppose the second solution is the fastest one :)

To do this:

# cd /usr/src/kernels/$(uname -r)*/include/linux
# cat utsrelease.h >> version.h

按照它上面所講就可以正常跑完 vmware-config.pl 了。

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-09-08  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 25095
  • 日志数: 63
  • 图片数: 1
  • 文件数: 8
  • 建立时间: 2005-09-19
  • 更新时间: 2008-08-05

RSS订阅

Open Toolbar