Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2594228
  • 博文数量: 333
  • 博客积分: 4817
  • 博客等级: 上校
  • 技术积分: 4413
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-28 10:51
文章分类

全部博文(333)

文章存档

2017年(20)

2016年(57)

2015年(27)

2014年(20)

2013年(21)

2012年(164)

2011年(24)

分类: LINUX

2015-01-21 10:56:04

    操作系统为fedora14。安装时选的最小化安装,以至于一些一些开发工具都没有安装。

    今天在加载模块的时候发现提示错误build文件夹不存在,原来是usr/src/kernels/中没有内核源码,于是yum -y install kernel-devel,安装了内核源码。
    当时没有注意,yum install kernel-devel安装的是目前可用的最新版本的内核。因此在加载模块的过程中回报出一下错误
      version magic '2.6.35.11-83.fc14.x86_64 SMP mod_unload ' should be '2.6.35.6-45.fc14.x86_64 SMP mod_unload '。
      解决方法是yum install kernel-devel-内核版本,也就是指定安装的内核版本。安装之后重新建立一个build链接,连接到新的内核版本所在文件夹即可。


If you are running the standard kernel (for example), you can install the kernel-devel package by:

[root@host]# yum install kernel-devel 

You can use this command to determine the version of your running kernel:

[root@host]# uname -r 

The result will look similar to this:

2.6.18-194.17.1.el5xen 

In this case, the xen kernel is installed and the way to install this specific kernel-devel package is:

[root@host]# yum install kernel-xen-devel  
阅读(3754) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~