当前位置: 技术问答>linux和unix
菜鸟 升级内核(2.4.80---2.6.6)遇到问题了,请大家帮忙过来看看。谢谢!急!!!
来源: 互联网 发布时间:2015-07-13
本文导语: 前些日子刚装了一个RedHat linux9,可发现内核版本太低了。我就上网找了一个linux 2.6.6.把linux-2.6.6.tar.bz2文件解压到了usr/src/liunx-2/linux-2.6.6/ 在“终端”中运行如下命令可以报错了。请问怎么解决。谢谢大家! # make mrpr...
前些日子刚装了一个RedHat linux9,可发现内核版本太低了。我就上网找了一个linux 2.6.6.把linux-2.6.6.tar.bz2文件解压到了usr/src/liunx-2/linux-2.6.6/
在“终端”中运行如下命令可以报错了。请问怎么解决。谢谢大家!
# make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN .config include/linux/autoconf.h
[root@Linux linux-2.6.6]# make xconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits
.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
11,
from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: ?????????
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
在“终端”中运行如下命令可以报错了。请问怎么解决。谢谢大家!
# make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN .config include/linux/autoconf.h
[root@Linux linux-2.6.6]# make xconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits
.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
11,
from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: ?????????
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
|
#cp /boot/config-xxx .config
#make oldconfig
#make
#make oldconfig
#make
|
那就用make menuconfig
|
make menuconfig 报什么错?
|
不把把下载的源代码放到那个位置,试试放到/