军哥,CentOS release 6.10安装nginx失败,附日志
CentOS release 6.10checking for C compiler ... not found
说我没装c编译器可是...
# yum -y install gcc
Loaded plugins: security
Setting up Install Process
Repository fasttrack is listed more than once in the configuration
Package gcc-4.4.7-23.el6.x86_64 already installed and latest version
Nothing to do
# yum -y install gcc-c++
Loaded plugins: security
Setting up Install Process
Repository fasttrack is listed more than once in the configuration
Package gcc-c++-4.4.7-23.el6.x86_64 already installed and latest version
Nothing to do
#
yum install glibc-devel glibc-headers kernel-headers 看一下这几个包安装了没有
还不行可能,reinstall gcc、gcc-c++等软件包
再不行就是你系统PATH、环境变量 ~/.bashrc、/etc/profile 等之类的可能设置有问题 本帖最后由 蛋蛋的蛋 于 2022-11-9 07:48 编辑
licess 发表于 2022-11-8 09:53
yum install glibc-devel glibc-headers kernel-headers 看一下这几个包安装了没有
还不行可能,reinstall ...
军哥 威武霸气帅,谢谢
glibc-devel x86_64 2.12-1.212.el6_10.3 updates 991 k
使用以上命令,是这个包没装,
装了就可以了 非常感谢
make: Leaving directory `/root/lnmp1.5/src/nginx-1.14.1'
Add nginx service at system startup...
Starting nginx...done
iptables: Saving firewall rules to /etc/sysconfig/iptables:
============================== Check install ==============================
Checking ...
Nginx: OK
页:
[1]