[root@happyboy src]# tar -xvzf libaal-1.0.5.tar.gz [root@happyboy src]# cd libaal-1.0.5 [root@happyboy libaal-1.0.5]# ./configure --prefix=/usr [root@happyboy libaal-1.0.5]# make [root@happyboy libaal-1.0.5]# make install //该操作将库文件安装到了/usr/lib目录 [root@happyboy libaal-1.0.5]# /sbin/ldconfig //add /usr/local/lib to /etc/ld.so.conf if not already there 一般不用手动执行,在make install时最后已经自动执行过了.注意检查一下/etc/ld.so.cache,系统版本不同文件略有差异,一般是/etc/ld.so.*
[root@happyboy src]# tar -xvzf reiser4progs-1.0.6.tar.gz [root@happyboy src]# cd reiser4progs-1.0.6 [root@happyboy reiser4progs-1.0.6]# ./configure --prefix=/usr [root@happyboy reiser4progs-1.0.6]# make [root@happyboy reiser4progs-1.0.6]# make install [root@happyboy reiser4progs-1.0.6]# /sbin/ldconfig
二.解压内核建链接,打补丁
[root@happyboy src]# tar -xvzf linux-2.6.22.tar.gz [root@happyboy src]# ln -s linux-2.6.22 linux [root@happyboy src]# cd linux [root@happyboy linux]# pwd /usr/src/linux [root@happyboy linux]# gzip -cd ../reiser4-for-2.6.22.patch.gz | patch -p1 //补丁包释放到/usr/src/linux/fs/reiser4
[root@myas5 ~]# more /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux AS (2.6.22.EL) root (hd0,0) kernel /bzImage-2.6.22 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.22.EL.img title Red Hat Enterprise Linux Server (2.6.18-8.el5) root (hd0,0) kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-8.el5.img
注意,在2.4.23之前的内核,通常制定LABEL参数,2.6.0内核这个参数已经被废弃了,使用root参数指定根文件系统的位置。 如果重新启动后出现“kernel panic”错误或显示应该修改“init”信息,则基本都是以上kernel语句错误。 根据发行版的不同,通常GRUB配置文件会在/etc/grub.conf、/boot/grub/menu.lst或/boot/grub/grub.conf三个地方。 开始我就错误修改了grub.conf,出现kernel panic not syncing attempted to kill init提示,因为当时选择默认分区
[root@myas5 ~]# uname -a
Linux myas5.happyboy.net.cn 2.6.22 #1 SMP Fri Dec 28 09:48:27 CST 2007 i686 i686 i386 GNU/Linux 可以看到内核已经升级到2.6.22l了