关于内核升级

newfinder 2011-08-22 08:52:36
我现在用的red hat 5,内核版本是2.6.18,装一个软件时提示内核版本太低,我就下载了linux-2.6.32.tar.bz2的源码包,编译时找不到./configure,这个问题对linux下安装程序很常见,怎么解决啊,求各位大神了。
...全文
80 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
newfinder 2011-08-22
  • 打赏
  • 举报
回复
嗯哪,多谢指点。
念茜 2011-08-22
  • 打赏
  • 举报
回复
老版本系统,换新内核,记得在make menuconfig里打开适应老版本的选项,不然会出现好多软件用不了的情况
newfinder 2011-08-22
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 jackyjkchen 的回复:]

引用 6 楼 newfinder 的回复:

内核正在编译中……,不知得多长时间哈。
1、ncurses下载地址:ftp://invisible-island.net/ncurses/
2、内核升级步骤可以参考这个:http://xugang.blog.51cto.com/400032/95621

多核处理器可以用make -jX,X是处理器数量

成倍提高速度,单进程的话一般……
[/Quote]
话说我怎么这么悲剧啊,make modules时运行一会结束了,
出错信息:
ld: final link failed: No space left on device
make[2]: *** [fs/jffs2/jffs2.o] Error 1
make[1]: *** [fs/jffs2] Error 2
make: *** [fs] Error 2
靠,20G的硬盘怎么说没就没了。
jackyjkchen 2011-08-22
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 newfinder 的回复:]

内核正在编译中……,不知得多长时间哈。
1、ncurses下载地址:ftp://invisible-island.net/ncurses/
2、内核升级步骤可以参考这个:http://xugang.blog.51cto.com/400032/95621
[/Quote]
多核处理器可以用make -jX,X是处理器数量

成倍提高速度,单进程的话一般至少要40分钟
newfinder 2011-08-22
  • 打赏
  • 举报
回复
内核正在编译中……,不知得多长时间哈。
1、ncurses下载地址:ftp://invisible-island.net/ncurses/
2、内核升级步骤可以参考这个:http://xugang.blog.51cto.com/400032/95621
newfinder 2011-08-22
  • 打赏
  • 举报
回复
在常规下安装ncurses,已经成功了。
参考了几年前的一个帖子,哈哈。http://topic.csdn.net/t/20040804/21/3243220.html
多谢大师指点。
newfinder 2011-08-22
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 jackyjkchen 的回复:]

引用 2 楼 newfinder 的回复:

1、我执行make menuconfig中间出错信息如下:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** In……
[/Quote]
1、redhat下用yum安装ncurses?我看好多人都用atp-get安装(这是ubuntu下的吗?)
2、我已经在root跟用户下了,怎么权限还不够啊?
3、我刚才重新解压,接着运行make mrproper, make manuconfig,出现下面的错误:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
看来只要装了ncurses就行了。
jackyjkchen 2011-08-22
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 newfinder 的回复:]

1、我执行make menuconfig中间出错信息如下:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncur……
[/Quote]
1.用yum安装ncurses及其相关的devel库
2.对,这个不用ncurses
3.既然这样直接用最新版RHEL或CentOS(和RHEL几乎一样的)
4../config不是可执行的,而且你要保证管理员权限
newfinder 2011-08-22
  • 打赏
  • 举报
回复
1、我执行make menuconfig中间出错信息如下:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
2、make oldconfig就是将原来的config-2.6.18拷过来,然后执行make oldconfig。就是一连串的选项吗?
3、我是在自己的虚拟机中学linux。
4、现在执行./config怎么说是Permission denied?
jackyjkchen 2011-08-22
  • 打赏
  • 举报
回复
linux内核不用configure

make mrproper 清理源码
make menuconfig 配置内核(或make oldconfig直接读取宿主机配置)
make tarbz2-pkg 编译打包(也可以打包成rpm或者直接安装)

如果不是动不得的生产服务器,请直接升级rhel 6

4,441

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧