关于VMWARE WORKSTATION在Fedora21下的安装问题

(1)在Fedora21下安装vmware如果在终端下启动,提示你找不到内核头文件Kernel Headers的话使用命令:

sudo yum install kernel-devel

你的内核头文件默认是在/usr/src/kernels下

使用命令后再检查内核头文件就应该已经存在了

(2)在内核头文件存在的情况下,如果提示报错如下:

Stopping vmware (via systemctl):                           [  确定  ]
make: Entering directory '/tmp/modconfig-czFWqw/vmnet-only'
Using kernel build system.
/bin/make -C /lib/modules/3.19.5-200.fc21.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/kernels/3.19.5-200.fc21.x86_64'
  CC [M]  /tmp/modconfig-czFWqw/vmnet-only/driver.o
  CC [M]  /tmp/modconfig-czFWqw/vmnet-only/hub.o
  CC [M]  /tmp/modconfig-czFWqw/vmnet-only/userif.o
  CC [M]  /tmp/modconfig-czFWqw/vmnet-only/netif.o
/tmp/modconfig-czFWqw/vmnet-only/driver.c: 在函数‘VNetFileOpUnlockedIoctl’中:
/tmp/modconfig-czFWqw/vmnet-only/driver.c:1194:20: 错误:‘struct file’没有名为‘f_dentry’的成员
    if (filp && filp->f_dentry) {
                    ^
/tmp/modconfig-czFWqw/vmnet-only/driver.c:1195:19: 错误:‘struct file’没有名为‘f_dentry’的成员
       inode = filp->f_dentry->d_inode;
                   ^
/tmp/modconfig-czFWqw/vmnet-only/userif.c: 在函数‘VNetCopyDatagram’中:
/tmp/modconfig-czFWqw/vmnet-only/userif.c:526:4: 错误:隐式声明函数‘skb_copy_datagram_iovec’ [-Werror=implicit-function-declaration]
    return skb_copy_datagram_iovec(skb, 0, &iov, len);
    ^
scripts/Makefile.build:257: recipe for target '/tmp/modconfig-czFWqw/vmnet-only/driver.o' failed
make[2]: *** [/tmp/modconfig-czFWqw/vmnet-only/driver.o] Error 1
make[2]: *** 正在等待未完成的任务....
In file included from include/linux/pci.h:34:0,
                 from /tmp/modconfig-czFWqw/vmnet-only/compat_netdevice.h:27,
                 from /tmp/modconfig-czFWqw/vmnet-only/netif.c:43:
include/linux/pci_ids.h:2251:0: 警告:“PCI_VENDOR_ID_VMWARE”重定义
 #define PCI_VENDOR_ID_VMWARE  0x15ad
 ^
In file included from /tmp/modconfig-czFWqw/vmnet-only/net.h:38:0,
                 from /tmp/modconfig-czFWqw/vmnet-only/vnetInt.h:26,
                 from /tmp/modconfig-czFWqw/vmnet-only/netif.c:42:
/tmp/modconfig-czFWqw/vmnet-only/vm_device_version.h:56:0: 附注:这是先前定义的位置
 #define PCI_VENDOR_ID_VMWARE                    0x15AD
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/tmp/modconfig-czFWqw/vmnet-only/userif.o' failed
make[2]: *** [/tmp/modconfig-czFWqw/vmnet-only/userif.o] Error 1
Makefile:1386: recipe for target '_module_/tmp/modconfig-czFWqw/vmnet-only' failed
make[1]: *** [_module_/tmp/modconfig-czFWqw/vmnet-only] Error 2
make[1]: Leaving directory '/usr/src/kernels/3.19.5-200.fc21.x86_64'
Makefile:120: recipe for target 'vmnet.ko' failed
make: *** [vmnet.ko] Error 2
make: Leaving directory '/tmp/modconfig-czFWqw/vmnet-only'
Starting vmware (via systemctl):  Job for vmware.service failed. See "systemctl status vmware.service" and "journalctl -xe" for details.
                                                           [失败]                                        

即头文件中的内容和安装过程要求不符合的话,可以

使用修复后的源码包:

http://pan.baidu.com/s/1hqAcYzU

复制到以下目录下覆盖:

sudo cp vmnet.tar /usr/lib/vmware/modules/source

问题就解决了!

<linux报错解决>在Fedora21下安装vmware报错的解决办法的更多相关文章

  1. 解决Mac OS下安装MyEclipse报错:Your system does not have sufficient memory to support MyEclipse

    最近想尝尝鲜,FQ去www.myeclipseide.com上下载了最新版的MyEclipse 15CI版,安装的时候,报告如下错误(MyEclipse 14也会出现这个问题): Your syste ...

  2. linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.

    linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql. 2013-03-04 1 ...

  3. window下安装redis报错: creating server tcp listening socket 127.0.0.1:6379: bind No error

    window下安装redis报错: creating server tcp listening socket 127.0.0.1:6379: bind No error 解决: 如果没有配置环境,在安 ...

  4. windows下安装pywin32报错:close failed in file object destructor:sys.excepthook is missing lost sys.stderr

    今晚要写搜索引擎作业,搭scrapy环境,遇到了下面问题: windows下安装pywin32报错:close failed in file object destructor:sys.excepth ...

  5. [原创] ubuntu下安装scrapy报错 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    Ubuntu14.04在virtualenv下安装scrapy报错,Failed building wheel for cffi,lxml,cryptography 等. error: command ...

  6. Linux下安装Android的adb驱动-解决不能识别的问题

    Linux下安装Android的adb驱动-解决不能识别的问题 20141011更新:      老方法对我当时使用的一款设备一直都没有出现问题,最后遇到小米手机还有Android4.4版本的系统都会 ...

  7. 5分钟教你在Linux下安装VMware

    如果我们只有一台笔记本,又想要搭建一个小集群,怎么办?虚拟机帮你实现梦想,市面上较为常用的虚拟机软件有VMware.VirtualBox.Xen.KVM.hyper-v等,本文主要介绍如何在Linux ...

  8. Ubuntu杂记——Ubuntu下安装VMware

    转战Ubuntu,不知道能坚持多久,但是自己还是要努力把转战过程中的学习到的给记录下来.这次就来记录一下,Ubuntu下如何安装VMware. 就我所知,Linux下有VirtualBox和VMwar ...

  9. Ubuntu 14.04/14.10下安装VMware Workstation 11图文教程

    VMware workstation 是一个可以进行桌面操作的虚拟软件.它可以让我们在一台电脑或者虚拟机中运行多个虚拟机. 由VMware公司研发和维护.由于是商业软件,我们需要买他们家的许可证或者说 ...

随机推荐

  1. debian SSD ext4 4K 对齐

    新入手了一台thinkpad, 原来的机械硬盘是500G的, 于是购入一块镁光的MX200 250G的SSD来新装debian stable(jessie) 1, 安装系统的之前按住F1进入bios后 ...

  2. cocos2d-x 3.0 Android环境搭建(亲測通过)

    网上一大堆讲述coco2d-x 3.0 版本号的android环境搭建.真是不忍直視.讲的不清不楚,真是不知道他们自己有没有測试过.今天正好忙完项目有点时间去部署了下android环境. cocos2 ...

  3. Linux安装php-7.0.16,完成php和apache的配置

    Linux安装php-7.0.16,完成php和apache的配置     版本:php-7.0.16.tar.gz,libxml2-2.9.2.tar.gz(php需要它的支持,首先安装它) 说明 ...

  4. PYTHON流向下载

    #-*- coding:utf-8 -*- import gzip import re import http.cookiejar import urllib.request import urlli ...

  5. windows10系统自带输入法不能切换中文如何解决

    具体如下: 1.打开计算机管理软件,右击“开始”按钮,在弹出的菜单中选择“计算机管理”: 2.或在桌面右击“此电脑”图标,在弹出的菜单中选择“管理”: 3.在打开的计算机管理软件中,选择“系统工具”- ...

  6. And Then There Was One(约瑟夫环)

    https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_probl ...

  7. Netty 高并发 (长文)

    目录 Netty+Zookeeper 亿级 高并发实战 (长文) 写在前面 1. 高并发IM架构与部分实现 1.1. 高并发的学习和应用价值 1.1.1. 高并发IM实战的价值 1.1.2. 高并发I ...

  8. Residual (numerical analysis)

    In many cases, the smallness of the residual means that the approximation is close to the solution, ...

  9. Python菜鸟之路:Python基础——函数

    一.函数 1. 简介 函数是组织好的,可重复使用的,用来实现单一,或相关联功能的代码段.函数能提高应用的模块性,和代码的重复利用率. 2. 组成 函数代码块以 def 关键词开头,后接函数名和圆括号( ...

  10. 检出的maven项目没有“M”标识

    从SVN服务器上检出的项目,在项目左上角没有“M”标识 解决此方案有两种方法: 1.将检出的项目“删除”(不删除工作空间的项目),重新导入,选择“Maven 项目”,导入完成即可. 2.选中项目右键, ...