Board logo

标题: Ubuntu 安装lnmp1.5失败 [打印本页]

作者: wujian6636    时间: 2018-9-11 15:06     标题: Ubuntu 安装lnmp1.5失败

系统:Linux version 4.4.0-116-generic (buildd@lgw01-amd64-021) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) ) #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018

Ubuntu 安装lnmp1.5失败:
============================phpMyAdmin install completed=======================
Add Startup and Starting LNMP...
Add nginx service at system startup...
insserv: warning: script 'limitfile.sh' missing LSB tags and overrides
Starting nginx... nginx (pid 15996 15994 15993 15992 15991 15990 15989 15988 15987 15986 15985 15984 15983 15982 15981 15980 15979 15978 15977 15976 15975 15974 15973 15971 15970) already running.
Add php-fpm service at system startup...
insserv: warning: script 'limitfile.sh' missing LSB tags and overrides
insserv: There is a loop between service nginx and limitfile.sh if stopped
insserv:  loop involving service limitfile.sh at depth 2
insserv:  loop involving service nginx at depth 1
insserv: Stopping limitfile.sh depends on nginx and therefore on system facility `$all' which can not be true!
Starting php-fpm /etc/init.d/php-fpm: 57: /etc/init.d/php-fpm: /usr/local/php/sbin/php-fpm: not found
failed
============================== Check install ==============================
Checking ...
Nginx: OK
Do not install MySQL/MariaDB.
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.
作者: licess    时间: 2018-9-11 18:45

引用:
Generating phar.php
/data/lnmp1.5/src/php-7.1.18/sapi/cli/php: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
Makefile:455: recipe for target 'ext/phar/phar.php' failed
make: *** [ext/phar/phar.php] Error 127
make: *** Waiting for unfinished jobs....
Generating phar.phar
/data/lnmp1.5/src/php-7.1.18/sapi/cli/php: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
Makefile:459: recipe for target 'ext/phar/phar.phar' failed
make: *** [ext/phar/phar.phar] Error 127
Generating phar.phar
/data/lnmp1.5/src/php-7.1.18/sapi/cli/php: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
Makefile:459: recipe for target 'ext/phar/phar.phar' failed
make: *** [ext/phar/phar.phar] Error 127
默认编译的php没有rtmp相关的依赖应该不会报错
可以find /  -name librtmp.* 看一下是否在 /usr/lib/x86_64-linux-gnu/ 下存在 librtmp.so.0 或 librtmp.so.1 文件
存在的话 ln -sf /usr/lib/x86_64-linux-gnu/librtmp.so.1 /lib/librtmp.so.0
然后再重新安装试试
作者: wujian6636    时间: 2018-9-14 15:35     标题: 回复 2# 的帖子

军哥,历害,终于解决了这个问题。:hug: :hug: :hug: :hug:




欢迎光临 VPS侦探论坛 (http://bbs.vpser.net/) Powered by Discuz! 6.0.0