Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10803920
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-05-31 17:32:52

前天装了一个redflag linux6.0感觉还可以,嘿嘿,然后就想用它来上网了,的确是感觉xp没得linux好玩一些,然后就在vmware下装了它,也装了vmware tools工具,但是却不能使用vmtools,这下子郁闷了。
    于是就想起了我以前对于redhat linux,但是却无法使用,因为RF linux更多像xp设计的,没办法就重新想办法了
    想到应该是服务没有开启吧,就用service vmware TAB一下子,出来service vmware-tools 选择
    service vmware-tools start 出来了,小喜
    
    


      安提示输入/usr/bin/vmware-config-tools.pl
      却出来What is the location of the directory of C header files that match your runningkernel?

    


       没有C内核的头文件,安网上提示安装一个kernel-devel-2.6.18-8.el5.i686.rpm就可以了,于是去 copy并rpm -ivh kernel-devel-2.6.18-8.el5.i686.rpm

       这下应该可以了。。。、嘿嘿
      
 
     以下是编译的内容
 
 
[root@localhost /]# /usr/bin/vmware-config-tools.pl

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [确定]
   Guest memory manager:                                   [确定]
正在关闭接口 eth0:                                        [确定]
关闭环回接口:                                             [确定]
   Guest vmxnet fast network device:                       [确定]
Trying to find a suitable vmmemctl module for your running kernel.

None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmmemctl 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? [/lib/modules/2.6.22.6-1/build/include]

Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmmemctl-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config2/vmmemctl-only/os.o
  SHIPPED /tmp/vmware-config2/vmmemctl-only/vmmemctl1.o
  LD [M]  /tmp/vmware-config2/vmmemctl-only/vmmemctl.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /tmp/vmware-config2/vmmemctl-only/.vmmemctl1.o.cmd for /tmp/vmware-config2/vmmemctl-only/vmmemctl1.o
  CC      /tmp/vmware-config2/vmmemctl-only/vmmemctl.mod.o
  LD [M]  /tmp/vmware-config2/vmmemctl-only/vmmemctl.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmmemctl.ko ./../vmmemctl.o
make: Leaving directory `/tmp/vmware-config2/vmmemctl-only'
The module loads perfectly in the running kernel.

Trying to find a suitable vmhgfs module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmhgfs module.

Building the vmhgfs module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmhgfs-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config2/vmhgfs-only/backdoor.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/cpName.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/dbllnklst.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/dentry.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/dir.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/eventManager.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/file.o
  CC [M]  /tmp/vmware-config2/vmhgfs-only/filesystem.o
/tmp/vmware-config2/vmhgfs-only/filesystem.c: In function ‘HgfsInitFileSystem’:
/tmp/vmware-config2/vmhgfs-only/filesystem.c:582: error: too few arguments to function ‘kmem_cache_create’
/tmp/vmware-config2/vmhgfs-only/filesystem.c:593: error: too few arguments to function ‘kmem_cache_create’
make[2]: *** [/tmp/vmware-config2/vmhgfs-only/filesystem.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config2/vmhgfs-only] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
make: *** [vmhgfs.ko] 错误 2
make: Leaving directory `/tmp/vmware-config2/vmhgfs-only'
Unable to build the vmhgfs module.

The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

pcnet32                31092  0
Unloading pcnet32 module

Trying to find a suitable vmxnet module for your running kernel.

None of the pre-built vmxnet modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmxnet module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmxnet-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config3/vmxnet-only/vmxnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config3/vmxnet-only/vmxnet.mod.o
  LD [M]  /tmp/vmware-config3/vmxnet-only/vmxnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmxnet.ko ./../vmxnet.o
make: Leaving directory `/tmp/vmware-config3/vmxnet-only'
The module loads perfectly in the running kernel.

Trying to find a suitable vmblock module for your running kernel.

None of the pre-built vmblock modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmblock module
for your system (you need to have a C compiler installed on your system)?
[yes]

Extracting the sources of the vmblock module.

Building the vmblock module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmblock-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/block.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/control.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/dbllnklst.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/dentry.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/file.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/filesystem.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/inode.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/module.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/stubs.o
  CC [M]  /tmp/vmware-config3/vmblock-only/linux/super.o
  LD [M]  /tmp/vmware-config3/vmblock-only/vmblock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config3/vmblock-only/vmblock.mod.o
  LD [M]  /tmp/vmware-config3/vmblock-only/vmblock.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmblock.ko ./../vmblock.o
make: Leaving directory `/tmp/vmware-config3/vmblock-only'
The module loads perfectly in the running kernel.

[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service
provides a new communication capability with the Host, primarily for
development at the moment.  Would you like to enable this feature? [no]



Detected X.org version 1.3.



No drivers for X.org version: 1.3.


Please choose one of the following display sizes that X will start with (1 -
15):

[1]  "640x480"
[2]  "800x600"
[3]< "1024x768"
[4]  "1152x864"
[5]  "1280x800"
[6]  "1152x900"
[7]  "1280x1024"
[8]  "1376x1032"
[9]  "1400x900"
[10]  "1400x1050"
[11]  "1440x900"
[12]  "1680x1050"
[13]  "1600x1200"
[14]  "1920x1200"
[15]  "2364x1773"
Please enter a number between 1 and 15:

[3] 3

Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:
                                                           [确定]
   Guest memory manager:                                   [确定]
   Guest vmxnet fast network device:                       [确定]
   Blocking file system:                                   [确定]
   DMA setup:                                              [确定]
   Guest operating system daemon:                          [确定]

The configuration of VMware Tools 6.0.2 build-59824 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start

To make use of the virtual printer, you will need to restart the CUPS service

Enjoy,

--the VMware team

[root@localhost /]#
[root@localhost /]#
 
安装成功,哈  
 

本文出自 “Ps从心开始的技术” 博客,转载请与作者联系!

阅读(1326) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~