|
在网上找了很多解决方案,但是还是解决不了,恳请各位高手帮忙看看。
问题如下:
1,在linux下,gcc编译器已经安装了,我直接用rpm包装的,输入gcc -v可以得到以下返回结果:
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
2,进入 rpc.rstatd目录下,输入./configure报错,说 installation or configuration problem: C compiler cannot create executables.
根据这错到网上去找原因,按照已有的方法尝试,没有一个凑效。具体的提示如下:
[root@HDwebdev rpc.rstatd]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gawk... gawk
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot cr
eate executables. |
|