VPS侦探论坛
标题: nginx安装失败 [打印本页]
作者: lingcool 时间: 2019-12-18 10:51
标题: nginx安装失败
请各位帮我看看安装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.
作者: lingcool 时间: 2019-12-18 12:21
安装日志在附件,谢谢大家
作者: licess 时间: 2019-12-18 12:32
fedora gcc版本太高,lnmp 1.5上的nginx不支持,必须用lnmp1.6
作者: lingcool 时间: 2019-12-18 12:41
谢谢,我试试
作者: lingcool 时间: 2019-12-18 14:34
lnmp1.6可以了,谢谢
| 欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) |
Powered by Discuz! X3.4 |