VPS侦探论坛

 找回密码
 注册
查看: 2219|回复: 1

lnmp1.8nginx php安装失败

[复制链接]
发表于 2022-2-10 10:42:55 | 显示全部楼层 |阅读模式

系统源设置多次问题已改
但是编译仍然会报
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版本
[root@localhost lnmp1.8]# 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
[root@localhost /]# 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这个错误描述太简略了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-2-10 19:42:07 | 显示全部楼层


最后的错误信息 ./configure: error: C compiler cc is not found 就已经确定少 gcc-c++ 了,安装日志上 gcc-c++ 是安装好的,结合你这个补充内容上的 $PATH 就是你系统环境上的问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-6 03:46 , Processed in 0.026233 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表