[root@localhost ~]# rpm -ivh /mnt/cdrom/Packages/ncurses-5.7-3.20090208.el6.i686.rpm
[root@localhost ~]# rpm -ivh /mnt/cdrom/Packages/ncurses-devel-5.7-3.20090208.el6.i686.rpm
[root@localhost ~]# rpm -ivh /mnt/cdrom/Packages/ncurses-libs-5.7-3.20090208.el6.i686.rpm
[root@localhost ~]# rpm -ivh /mnt/cdrom/Packages/ncurses-base-5.7-3.20090208.el6.i686.rpm
[root@localhost ~]# rpm -ivh /mnt/cdrom/Packages/ncurses-term-5.7-3.20090208.el6.i686.rpm
[root@localhost ~]#rpm-ivh/mnt/cdrom/Packages/ncurses-static-5.7-3.20090208.el6.i686.rpm
[root@localhost ~]# cd /usr/locai/src/ncurses-5.9
#进入ncurses解压缩目录
[root@localhost ncurses-5.9] # ./configure \ #编译前配置
--with-shared \ #生成共享库
--without-debug \ #不生成 debug 库
--without-ada \ #不编译为ada绑定,因为进入chroot环境不能便用ada
--enable-overwrite #参数为定义把头文件安装到/tools/include目录下,而不是/tools/include/ncurses 目录下
[root@localhost ncurses-5.9]# make #编译
[root@localhost ncurses-5.9)# make install #编译安装
本文链接:http://task.lmcjl.com/news/12266.html