那一 发表于 2023-3-30 19:23:30

PHP install failed

日志链接https://t.wss.ink/f/aun2i8n429v

那一 发表于 2023-3-30 21:44:03

拜托大佬闲了看一眼哪里的问题
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
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.




日志链接https://t.wss.ink/f/aun2i8n429v

那一 发表于 2023-3-31 00:06:38

上个问题已解决 新的日志 摆脱大佬看一眼
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
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.

日志链接 https://t.wss.ink/f/aup3hxzs550

licess 发表于 2023-3-31 08:36:06

第一个日志
下载软件包:
sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://ftp.sjtu.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://ftp.sjtu.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.qlu.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.qlu.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.bfsu.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.bfsu.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
(1/2): sqlite-3.26.0-17.el8.x86_64.rpm          811 kB/s | 668 kB   00:00   
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirror.lzu.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.cqu.edu.cn/CentOS/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.ustc.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.bupt.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (28): Timeout was reached for http://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/BaseOS/x86_64/os/Packages/sqlite-devel-3.26.0-17.el8.x86_64.rpm
sqlite-devel-3.26.0-17.el8.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success

下载的软件包保存在缓存中,直到下次成功执行事务。
您可以通过执行 'yum clean packages' 删除软件包缓存。
错误:下载软件包出错 :
sqlite-devel-3.26.0-17.el8.x86_64: Cannot download, all mirrors were already tried without success
你网络环境可能有问题吧,这么多源都无法正常下载

第二个日志
/bin/sh //home/lnmp1.9/src/php-7.4.30/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I//home/lnmp1.9/src/php-7.4.30/ext/opcache/ -DPHP_ATOM_INC -I//home/lnmp1.9/src/php-7.4.30/include -I//home/lnmp1.9/src/php-7.4.30/main -I//home/lnmp1.9/src/php-7.4.30 -I//home/lnmp1.9/src/php-7.4.30/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I//home/lnmp1.9/src/php-7.4.30/TSRM -I//home/lnmp1.9/src/php-7.4.30/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS    -c //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
               from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:19:27: 警告:缺少结尾的 " 字符 [默认启用]
#define CONFIGURE_COMMAND " './configure''--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-config-file-scan-dir=/usr/local/php/conf.d' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype=/usr/local/freetype' '--with-jpeg' '--with-png' '--with-zlib' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--enable-intl' '--enable-ftp' '--enable-gd' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--with-zip' '--without-libzip' '--enable-soap' '--with-gettext' '--enable-opcache' '--with-xsl' '--with-pear' '--with-webp' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig/
                           ^
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
               from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 警告:缺少结尾的 ' 字符 [默认启用]
'"
^
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 错误:缺少结尾的 ' 字符
make: *** 错误 1
/bin/sh //home/lnmp1.9/src/php-7.4.30/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I//home/lnmp1.9/src/php-7.4.30/ext/opcache/ -DPHP_ATOM_INC -I//home/lnmp1.9/src/php-7.4.30/include -I//home/lnmp1.9/src/php-7.4.30/main -I//home/lnmp1.9/src/php-7.4.30 -I//home/lnmp1.9/src/php-7.4.30/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I//home/lnmp1.9/src/php-7.4.30/TSRM -I//home/lnmp1.9/src/php-7.4.30/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS    -c //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
               from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:19:27: 警告:缺少结尾的 " 字符 [默认启用]
#define CONFIGURE_COMMAND " './configure''--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-config-file-scan-dir=/usr/local/php/conf.d' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype=/usr/local/freetype' '--with-jpeg' '--with-png' '--with-zlib' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--enable-intl' '--enable-ftp' '--enable-gd' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--with-zip' '--without-libzip' '--enable-soap' '--with-gettext' '--enable-opcache' '--with-xsl' '--with-pear' '--with-webp' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig/
                           ^
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
               from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 警告:缺少结尾的 ' 字符 [默认启用]
'"
^
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 错误:缺少结尾的 ' 字符
make: *** 错误 1
没遇到过,不清楚问题和原因,可用尝试更换其他php版本或者更换Debian系统试一下
页: [1]
查看完整版本: PHP install failed