rpm: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
后来我尝试重新编译gcc,就下了gcc-4.0.2.tar.gz
但是也报错误:
loading cache ./config.cache
checking host system type... i386-redhat-linux-gnu
checking target system type... i386-redhat-linux-gnu
checking build system type... i386-redhat-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... (cached) gnatbind
checking whether compiler driver understands Ada... (cached) yes
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
*** This configuration is not supported in the following subdirectories:
target-libada target-libgfortran target-libobjc
(Any other directories should still work fine.)
checking for bison... no
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for gm4... (cached) m4
checking for flex... no
checking for flex... no
checking for lex... no
checking for makeinfo... no
checking for i386-redhat-linux-ar... no
checking for ar... (cached) ar
checking for i386-redhat-linux-as... no
checking for as... (cached) as
checking for i386-redhat-linux-dlltool... no
checking for dlltool... (cached) dlltool
checking for i386-redhat-linux-ld... no
checking for ld... (cached) ld
checking for i386-redhat-linux-nm... no
checking for nm... (cached) nm
checking for i386-redhat-linux-ranlib... no
checking for ranlib... (cached) ranlib
checking for i386-redhat-linux-windres... no
checking for windres... (cached) windres
checking for i386-redhat-linux-objcopy... no
checking for objcopy... (cached) objcopy
checking for i386-redhat-linux-objdump... no
checking for objdump... (cached) objdump
checking for i386-redhat-linux-ar... no
checking for ar... (cached) ar
checking for i386-redhat-linux-as... no
checking for as... (cached) as
checking for i386-redhat-linux-dlltool... no
checking for dlltool... (cached) dlltool
checking for i386-redhat-linux-ld... no
checking for ld... (cached) ld
checking for i386-redhat-linux-nm... no
checking for nm... (cached) nm
checking for i386-redhat-linux-ranlib... no
checking for ranlib... (cached) ranlib
checking for i386-redhat-linux-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile