Glibc-2.4.tar.gz的安装问题一个一个解决
1. 现在下面的网站上下载glibc-2.4.tar.gz 和glibc-libidn-2.4.tar.gz (目前不知道为什么要下载这个)http://ftp.gnu.org/gnu/glibc/
2. 解压缩[root@RHEL4 programes]# tar zxvf glibc-libidn-2.4.tar.gz
root@RHEL4 programes]#tar zxvf glibc-2.4.tar.gz
如果只解压缩glibc-2.4.tar.gz的话,在解压后会出现错误,所以先解压glibc-libidn-2.4.tar.gz,再解压glibc-2.4.tar.gz就没有提示错误了。[root@RHEL4 glibc-2.4]# ./configure
configure: error: cannot find sources (include/features.h) in . or ..
root@RHEL4 programes]# ls
flash-plugin-10.0.22.87-release.i386.rpm glibc-libidn-2.4.tar.gz
glibc-2.4 glibc-ports-2.4.tar.gz
glibc-2.4.tar.gz linuxqq-v1.0.2-beta1.i386.rpm
glibc-libidn-2.4 linuxqq_v1.0.2-beta1_i386.tar.gz
3. ./configure也就是说不能直接在在glibc-2.4这个目录中进行./configure,必须重新建立一个目录后并且进入后再在刚才的目录下进行./configure,例如就是重新建立了一个目录glibc_build 进入这个目录后/roo/programes/glibc-2.4/congfigure.即上面的内容
configure: error: you must configure in a separate build directory
[root@RHEL4 programes]# pwd
/root/programes
[root@RHEL4 programes]# cd glibc-2.4
[root@RHEL4 glibc-2.4]# ./configure
configure: error: you must configure in a separate build directory
[root@RHEL4 glibc-2.4]# mkdir glibc_build
[root@RHEL4 glibc-2.4]# cd g
glibc_build/ gmon/ gnulib/ grp/
[root@RHEL4 glibc-2.4]# cd glibc_build/
[root@RHEL4 glibc_build]# pwd
/root/programes/glibc-2.4/glibc_build
[root@RHEL4 glibc_build]# /root/programes/glibc-2.4/configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu *** On GNU/Linux systems the
GNU C Library should not be installed into
*** /usr/local since this might make your system totally unusable.
*** We strongly advise to use a different prefix. For details read the FAQ.
*** If you really mean to do this, run configure again using the extra
*** parameter `--disable-sanity-checks'.
4.onfigure: error: you must configure in a separate build directory
# /root/programes/glibc-2.4/configure --prefix=/usr/local/glibc2.4/
#make
#make install