centos安装指定版本的kernel-devel

Question:

I am attempting to install the VMWare player in Fedora 19. I am running into the problem that multiple users have had where VMware player cannot find the kernel headers. I have installed the kernel-headersand kernel-develpackages through yumand the file that appears in /usr/src/kernelsis:

3.12.8- 200.fc19.x86_64

However, when I do uname -rmy Fedora kernel version is:

3.9.5- 301.fc19.x86_64

which is a different version. This seems to mean that when I point VMware player at the path of the kernels I get this error:

C header files matching your running kernel were not found.  

Refer to your distribution

's documentation for installation instructions.

How can I install the correct Kernel and where should I be pointing VMware if its not /usr/src/kernels/ ?

Answer:

You can install the correct kernel header files like so:

$ sudo yum install "kernel-devel-uname-r == $(uname -r)"

Example

This command will always install the right version.

$ sudo yum install "kernel-devel-uname-r == $(uname -r)"

Loaded plugins: auto-update-debuginfo, changelog, langpacks, refresh-packagekit

No package kernel-devel-uname-r == 3.12.6- 200.fc19.x86_64 available.

Error: Nothing to

do

Or you can search for them like this:

$ yum search "kernel-headers-uname-r == $(uname -r)" --disableexcludes=all

Loaded plugins: auto-update-debuginfo, changelog, langpacks, refresh-packagekit

Warning: No matches found for: kernel-headers-uname-r == 3.12.6- 200.fc19.x86_64

No matches found

However I’ve notice this issue as well where specific versions of headers are not present in the repositories. You might have to reach into Koji to find a particular version of a build.

That page includes all the assets for that particular version of the Kernel.

Via: http://unix.stackexchange.com/questions/110682/yum-installs-kernel-devel-different-from-my-kernel-version

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值