解决centos7安装wmwaretools找不到kernel header

解决centos6安装wmwaretools找不到kernel header http://www.centoscn.com/CentosBug/softbug/2015/0525/5531.html

During the installation process, I found following error:

Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]
What is the location of the directory of C header files that match your running kernel?

What VMWare needs is the kernel-header and kernel-devel package from the same version with your current loaded kernel. You can check your loaded kernel by using following command:

$uname -r
2.6.32-71.el6.x86_64
SOLUTION 1

Solution #1 is highly recommended because it is better to update your kernel to the latest stable version provided by the repository. But you need to have downtime on this. Steps as below:

1. Update the kernel:

$ yum update kernel -y

2. Install the kernel-headers, kernel-devel and other required packages:

$ yum install

 kernel-headers kernel-devel gcc make -y

3. Reboot the server to make sure it load to the new kernel:
$ init 6
4. The kernel version has been updated including the kernel-headers and kernel-devel:
  # rpm -qa|grep -e  kernel-devel  -e  kernel-headers     kernel-devel-3.10.0-327.18.2.el7.x86_64    kernel-headers-3.10.0-327.18.2.el7.x86_64# uname -r    3.10.0-327.18.2.el7.x86_64
SOLUTION 2

Solution #2 require you to install kernel-headers and kernel-devel with your current kernel version. Steps as below:

1. Install the same version of kernel-headers and kernel-devel via yum:

$ yum install kernel-headers-$(uname -r) kernel-devel-$( uname -r) -y

NOTE: If you have install gcc previously, you will facing error because the kernel-headers already installed but the version is the latest kernel version. You need to remove it first using following command:
$ yum remove kernel-headers -y

2. Install required files:
$ yum install gcc make -y
3. No need to reboot the server. Just make sure the kernel, kernel-headers and kernel-devel version are same:
$ uname –r 2.6.32-71 .el6.x86_64
$ rpm –qa |grep –e kernel-headers –e kernel-devel kernel-headers-2.6.32-71.el6.x86_64 kernel-devel-2.6.32-71.el6.x86_64

Once you have completed using one of the solution above, proceed to the VMware tools installation by following the wizard. The installation should be able to detect the kernel header path at this moment.

fyi:http://blog.secaserver.com/2011/09/linux-vmware-tools-installation-error

				
时间: 2024-10-11 05:21:14

解决centos7安装wmwaretools找不到kernel header的相关文章

解决CentOS7安装Tomcat不能被外部访问的问题

在CentOS7安装了Tomcat,在服务器内部使用火狐浏览器通过localhost:8080是可以访问的,但是不能被外部访问,主要原因是因为防火墙的存在,导致端口不能被访问.CentOS是使用firewall而不是iptables貌似也找不到iptables这个目录了.解决这个问题的办法就是通过firewall添加我们需要开放的端口.我们先使用一个命令查看防火墙是启用状态 firewall-cmd --state 如果启用了防火墙会返回running,未启用返回not running,在run

解决 CentOS7 安装完成后ifconfig命令不能用

今天用VMWare安装了CentOS7,选择了最小安装包模式,安装完毕之后想查看一下本机的ip地址,发现报错 # ifconfig -bash: ifconfig: command not found 谷歌了一下,整理了一下解决思路 查看ifconfig命令是否存在 查看 /sbin/ifconfig是否存在 如果ifconfig命令存在,查看环境变量设置 #echo $PATH 如果环境变量中没有包含ifconfig命令的路径 临时修改环境变量:在shell中输入 $export PATH =

解决Centos7安装docker源问题

根据官方文档:https://docs.docker.com/install/linux/docker-ce/centos/搭建docker? 1.卸载docker旧版本: sudo yum remove docker \? ? ? ? ? ? ? ? ? docker-client \? ? ? ? ? ? ? ? ? docker-client-latest \? ? ? ? ? ? ? ? ? docker-common \? ? ? ? ? ? ? ? ? docker-latest \

关于VMware的“Enter the path to the kernel header files...?”报错的解决方法

这是由于在安装Vmware tools时找不到kernel header files,因此只要安装相关依赖包即可 sudo apt-get update sudo apt-get install build-essential sudo apt-get install libx11-6 libx11-dev libxtst6 xinetd sudo apt-get install linux-headers-`uname -r` build-essential

fedora25 安装virtualbox5.1 出现提示Kernel driver not installed (rc=-1908) 错误的解决方法

fedora25 安装virtualbox5.1 出现提示Kernel driver not installed (rc=-1908) 错误的解决方法: $ sudo /usr/lib/virtualbox/vboxdrv.sh setup        vboxdrv.sh: Building VirtualBox kernel modules.             vboxdrv.sh: Starting VirtualBox services.

Centos7安装完毕后重启提示Initial setup of CentOS Linux 7 (core)的解决方法

问题: CentOS7安装完毕,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License information (no user will be created) (license not accepted) Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: 解决方法:

CentOS7安装mysql5.7不成功,解决依赖包之后还是无法安装成功

[[email protected] ~]# yum -y installmysql-community-server ............. Error: Package:mysql-community-server-5.7.19-1.el6.x86_64 (mysql57-community) Requires: libsasl2.so.2()(64bit) Error: Package:2:postfix-2.10.1-6.el7.x86_64 (@anaconda) Requires

linux常用(一)linux 安装配置 jdk之 安装后找不到安装后的文件目录 解决

linux 安装配置 jdk 应该算是一个很基本的东西.但是我到现在才自己第一次 正式安装.果然出现了问题.. 问题就是 安装之后 找不到 安装路径 ,进而没法配置环境变量. 现象如下: 提示 already installed 之后  用find命令查找 结果还是: 没有显示/usr/java/jdk-1.6.0_27/ 这样的目录 整了很长时间搞不定 ,没别的办法  看到了 安装的包 有.bin的 也有.rpm的 所以决定先百度下 搞清楚 这两种格式有什么区别 整理如下: 用bin文件和用w

centos7 安装pip+python3.6以及pip安装错误解决办法

Centos7安装pip 1.执行:yum install python-pip 若没有python-pip包,先执行:yum -y install epel-release,再执行yum install python-pip 2.pip install --upgrade pip centos默认安装了python2.7 1.mkdir /usr/local/python3 3.安装依赖包: yum -y groupinstall "Development tools" 安装的时候可