chenzhimen 发表于 2021-9-29 17:49:33

求助,安装php报错了

linux版本:Linux version 3.10.0-957.5.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Fri Feb 1 14:54:57 UTC 2019

lnmp-install地址:https://www.wenshushu.cn/f/6ih5myervfk
错误内容:

make: Leaving directory `/tmp/lnmp1.8-full/src/nginx-1.20.1'
mkdir: cannot create directory ‘/tmp/tcmalloc’: File exists
3.9+
Create PHP Info Tool...
Copy PHP Prober...
Copy Opcache Control Panel...
============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package iptables-services-1.4.21-35.el7.x86_64 already installed and latest version
Nothing to do
iptables: Saving firewall rules to /etc/sysconfig/iptables:
Redirecting to /bin/systemctl reload iptables.service
Job for iptables.service invalid.
Add iptables service at system startup...
Add Startup and Starting LNMP...
Add nginx service at system startup...
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /etc/systemd/system/nginx.service.
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
Add php-fpm service at system startup...
Created symlink from /etc/systemd/system/multi-user.target.wants/php-fpm.service to /etc/systemd/system/php-fpm.service.
============================== 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 发表于 2021-9-30 10:49:59

Generating phar.php
/tmp/lnmp1.8-full/src/php-7.2.34/sapi/cli/php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
make: *** Error 127
按错误信息可能你机器上的libiconv被删掉或者没有被找到
find / -name libiconv.so.2 找一下是否存在
cat /etc/ld.so.conf 看是否包含 /usr/local/lib

chenzhimen 发表于 2021-9-30 10:58:02

licess 发表于 2021-9-30 10:49
按错误信息可能你机器上的libiconv被删掉或者没有被找到
find / -name libiconv.so.2 找一下是否存在
cat...

1、find / -name libiconv.so.2:这个有找到
2、cat /etc/ld.so.conf:这个里面没有/usr/local/lib,现在添加上了
3、正在重新安装中

chenzhimen 发表于 2021-9-30 11:05:56

licess 发表于 2021-9-30 10:49
按错误信息可能你机器上的libiconv被删掉或者没有被找到
find / -name libiconv.so.2 找一下是否存在
cat...

nginx (pid 609) is running...
php-fpm is runing!
State      Recv-Q Send-Q Local Address:Port               Peer Address:Port            
LISTEN   0      128          *:80                     *:*                  
LISTEN   0      128          *:80                     *:*                  
LISTEN   0      128          *:80                     *:*                  
LISTEN   0      128          *:80                     *:*                  
LISTEN   0      128          *:22                     *:*                  
LISTEN   0      1      127.0.0.1:32000                  *:*                  
LISTEN   0      128         :::22                      :::*                  
Install lnmp takes 7 minutes.
Install lnmp V1.8 completed! enjoy it.



安装成功了,大佬太给力了:handshake
页: [1]
查看完整版本: 求助,安装php报错了