Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91735
  • 博文数量: 16
  • 博客积分: 1735
  • 博客等级: 上尉
  • 技术积分: 170
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-10 10:53
文章分类

全部博文(16)

文章存档

2010年(16)

分类: LINUX

2010-11-04 17:52:48

今天在升级Fedora14后,在使用vmware7.1时出现了问题,以往每次升级完内核时都需要vmware重编译,而今天编译却出现错误,
# vmware-modconfig --console --install-all
Stopping VMware services:
   VMware USB Arbitrator                                   [  OK  ]
   VM communication interface socket family                [  OK  ]
   Virtual machine communication interface                 [  OK  ]
   Virtual machine monitor                                 [  OK  ]
   Blocking file system                                    [  OK  ]
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/2.6.35.6-48.fc14.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.35.6-48.fc14.i686'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/iommu.o
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103:28: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113:17: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117:35: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120:20: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:156:7: error: implicit declaration of function ‘iommu_map_range’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_VMCleanup’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:403:7: error: implicit declaration of function ‘iommu_unmap_range’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:216:17: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/iommu.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.35.6-48.fc14.i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon

在google上找到一篇文章可以解决编译问题,

Persuading VMware Workstation 7.1 to cooperate with Linux kernel 2.6.35


在service vmware stop/start时,出现lsmod不存在。
# ls -l /sbin/lsmod
lrwxrwxrwx 1 root root 10 Nov  4 17:32 /sbin/lsmod -> /bin/lsmod
]# ls -l /bin/lsmod
ls: cannot access /bin/lsmod: No such file or directory

# yum search module
# yum list module-init-tools.i686
Loaded plugins: axelget, downloadonly, langpacks
Adding en_US to language list
Installed Packages
module-init-tools.i686       3.11.1-2.fc13          @fedora/13

# yum reinstall module-init-tools.i686
# ls -l /sbin/lsmod
-rwxr-xr-x 1 root root 4336 Nov 25  2009 /sbin/lsmod

# service vmware stop
Stopping VMware services:
   VMware USB Arbitrator                                   [  OK  ]
   VM communication interface socket family                [  OK  ]
   Virtual machine communication interface                 [  OK  ]
   Virtual machine monitor                                 [  OK  ]
   Blocking file system                                    [  OK  ]
# service vmware start
Starting VMware services:
   VMware USB Arbitrator                                   [  OK  ]
   Virtual machine monitor                                 [  OK  ]
   Virtual machine communication interface                 [  OK  ]
   VM communication interface socket family                [  OK  ]
   Blocking file system                                    [  OK  ]
   Virtual ethernet                                        [  OK  ]
   Shared Memory Available                                 [  OK  ]
至此vmware成功运行!!


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

chinaunix网友2011-06-15 10:35:04

这里才是正解: http://6dhb.com/group/832/item/31691

chinaunix网友2010-11-06 16:21:41

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com