Centos6.9,宝塔5.5,原Nginx版本1.12,在软件管理中点更新,查询日志
- checking for OS
- + Linux 2.6.32-696.10.1.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.
- cp: cannot stat `/www/server/nginx/update/src/objs/nginx': No such file or directory
- done
- nginx.sh: line 375: nginx: command not found
复制代码 运行环境中nginx就没了,重新点极速安装,日志为
- checking for OS
- + Linux 2.6.32-696.10.1.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.
- ========================================================
- [31mERROR: nginx-1.12.2 installation failed.[0m
复制代码 查询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-18) (GCC)
复制代码 yum安装gcc等,提示已安装
- yum install gcc gcc-c++ autoconf automake make
- Loaded plugins: fastestmirror, security
- Setting up Install Process
- Loading mirror speeds from cached hostfile
- * base: mirrors.163.com
- * epel: mirrors.tongji.edu.cn
- * extras: mirrors.cn99.com
- * updates: mirrors.163.com
- Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
- Package gcc-c++-4.4.7-18.el6.x86_64 already installed and latest version
- Package autoconf-2.63-5.1.el6.noarch already installed and latest version
- Package automake-1.11.1-4.el6.noarch already installed and latest version
- Package 1:make-3.81-23.el6.x86_64 already installed and latest version
- Nothing to do
复制代码 不得已镜像恢复了,求大神帮助
|
|