翼德1 发表于 2022-2-10 10:42:55

lnmp1.8nginx php安装失败

系统源设置多次问题已改
但是编译仍然会报
checking for OS
+ Linux 2.6.32-754.29.2.el6.x86_64 x86_64
checking for C compiler ... not found

./configure: error: C compiler cc is not found

make: *** No rule to make target `build', needed by `default'.Stop.
make: *** No rule to make target `build', needed by `default'.Stop.
make: *** No rule to make target `install'.Stop.


gcc版本
# gcc-v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)


系统PATH
root@localhost lnmp1.8]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/erlang/bin:/mnt/java/jdk1.8.0_181/bin:/mnt/java/jdk1.8.0_181/jre/bin:/root/bin




补充内容 (2022-2-10 11:33):
系统path
# echo$PATH
/usr/libexec/gcc/x86_64-redhat-linux/4.4.4/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/erlang/bin:/mnt/java/jdk1.8.0_181/bin:/mnt/java/jdk1.8.0_181/jre/bin:/root/bin:/usr/local/erlang/bin:/mnt/java/jdk1.8.0_181/bin:/mnt/java/jdk1.8.0_181/jre/bin:/usr/local/erlang/bin:/mnt/java/jdk1.8.0_181/bin:/mnt/java/jdk1.8.0_181/jre/bin


补充内容 (2022-2-10 11:36):
主要还是想请问下 那个 config.log 可以从哪里查看   checking whether the C compiler works... no这个错误描述太简略了

licess 发表于 2022-2-10 19:42:07

最后的错误信息 ./configure: error: C compiler cc is not found 就已经确定少 gcc-c++ 了,安装日志上 gcc-c++ 是安装好的,结合你这个补充内容上的 $PATH 就是你系统环境上的问题
页: [1]
查看完整版本: lnmp1.8nginx php安装失败