VPS侦探论坛

 找回密码
 注册
查看: 175|回复: 4

nginx安装失败

[复制链接]
发表于 2019-12-18 10:51:11 | 显示全部楼层 |阅读模式



请各位帮我看看安装nginx失败了
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/lnmp1.5/src/openssl-1.0.2o/.openssl/include -I objs \
        -o objs/src/os/unix/ngx_user.o \
        src/os/unix/ngx_user.c
src/os/unix/ngx_user.c: In function 'ngx_libc_crypt':
src/os/unix/ngx_user.c:26:7: error: 'struct crypt_data' has no member named 'current_salt'
     cd.current_salt[0] = ~salt[0];
       ^
make[1]: *** [objs/Makefile:870: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/root/lnmp1.5/src/nginx-1.14.1'
make: *** [Makefile:8: build] Error 2
make -f objs/Makefile
make[1]: Entering directory '/root/lnmp1.5/src/nginx-1.14.1'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/lnmp1.5/src/openssl-1.0.2o/.openssl/include -I objs \
        -o objs/src/os/unix/ngx_user.o \
        src/os/unix/ngx_user.c
src/os/unix/ngx_user.c: In function 'ngx_libc_crypt':
src/os/unix/ngx_user.c:26:7: error: 'struct crypt_data' has no member named 'current_salt'
     cd.current_salt[0] = ~salt[0];
       ^
make[1]: *** [objs/Makefile:870: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/root/lnmp1.5/src/nginx-1.14.1'
make: *** [Makefile:8: build] Error 2
make -f objs/Makefile install
make[1]: Entering directory '/root/lnmp1.5/src/nginx-1.14.1'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/lnmp1.5/src/openssl-1.0.2o/.openssl/include -I objs \
        -o objs/src/os/unix/ngx_user.o \
        src/os/unix/ngx_user.c
src/os/unix/ngx_user.c: In function 'ngx_libc_crypt':
src/os/unix/ngx_user.c:26:7: error: 'struct crypt_data' has no member named 'current_salt'
     cd.current_salt[0] = ~salt[0];
       ^
make[1]: *** [objs/Makefile:870: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/root/lnmp1.5/src/nginx-1.14.1'
make: *** [Makefile:11: install] Error 2
cp: cannot create regular file '/usr/local/nginx/conf/nginx.conf': No such file or directory
cp: cannot create directory '/usr/local/nginx/conf/': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/pathinfo.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/enable-php.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/enable-php-pathinfo.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/enable-ssl-example.conf': No such file or directory
cp: cannot create regular file '/usr/local/nginx/conf/magento2-example.conf': No such file or directory
chown: changing ownership of '/home/wwwroot/default/.user.ini': Operation not permitted
mkdir: cannot create directory '/usr/local/nginx/conf/vhost': No such file or directory
Add nginx service at system startup...
Starting nginx... /etc/init.d/nginx: line 41: /usr/local/nginx/sbin/nginx: No such file or directory
failed
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
============================== Check install ==============================
Checking ...
Error: Nginx install failed.


美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-12-18 12:21:46 | 显示全部楼层


安装日志在附件,谢谢大家

本帖子中包含更多资源

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

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-12-18 12:32:51 | 显示全部楼层



fedora gcc版本太高,lnmp 1.5上的nginx不支持,必须用lnmp1.6
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-12-18 12:41:22 | 显示全部楼层



谢谢,我试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-12-18 14:34:10 | 显示全部楼层

licess 发表于 2019-12-18 12:32
fedora gcc版本太高,lnmp 1.5上的nginx不支持,必须用lnmp1.6

lnmp1.6可以了,谢谢

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2020-1-21 00:58 , Processed in 0.046413 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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