解决centos7安装wmwaretools找不到kernel header

		<div class="blogStats">
			
			<div id="blog_stats">

随笔- 428 
文章- 0 
评论- 3 

		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->

解决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

  1. 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



0
0
« 上一篇: gcc代码反汇编查看内存分布[2]: arm-linux-gcc
» 下一篇: centos7/redhat7 将网卡名字改成eth样式的方法
	</div>
	<div class="postDesc">posted @ <span id="post-date">2016-06-23 20:52</span> <a href="https://www.cnblogs.com/mylinux/">oucaijun</a> 阅读(<span id="post_view_count">8490</span>) 评论(<span id="post_comment_count">1</span>)  <a href="https://i.cnblogs.com/EditPosts.aspx?postid=5612168" rel="nofollow">编辑</a> <a href="#" onclick="AddToWz(5612168);return false;">收藏</a></div>
</div>
<script type="text/javascript">var allowComments=true,cb_blogId=147781,cb_entryId=5612168,cb_blogApp=currentBlogApp,cb_blogUserGuid='6ce1bc1c-07a2-e211-82de-84c4f0333004',cb_entryCreatedDate='2016/6/23 20:52:00';loadViewCount(cb_entryId);var cb_postType=1;</script>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"></span>
			</div>
			<a href="#3931592" class="layer">#1楼</a><a name="3931592" id="comment_anchor_3931592"></a><span id="comment-maxId" style="display:none;">3931592</span><span id="comment-maxDate" style="display:none;">2018/3/23 22:17:56</span> <span class="comment_date">2018-03-23 22:17</span> | <a id="a_comment_author_3931592" href="https://www.cnblogs.com/vancen/" target="_blank">Vancen</a> <a href="http://msg.cnblogs.com/send/Vancen" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3931592" class="blog_comment_body">不错, 收集的很全,按照此方法已经解决!</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(3931592,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(3931592,'Bury',this)">反对(0)</a></div>
		</div>
	</div>
<div id="comments_pager_bottom"></div></div><script type="text/javascript">var commentManager = new blogCommentManager();commentManager.renderComments(0);</script>
</div>
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值