Lar 发表于 2021-8-2 15:49:23

安装多版本php7.4.19失败

php-7.4.19.tar.bz2
[+] Installing php-7.4.19
Uncompress php-7.4.19.tar.bz2...

bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?*Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: Error is not recoverable: exiting now
cd php-7.4.19...
configure: WARNING: unrecognized options: --with-png, --enable-zip, --without-libzip
configure: error: cannot find install-sh, install.sh, or shtool in build "."/build
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有规则可以创建目标“install”。 停止。
Copy new php configure file...
Modify php.ini......
Install ZendGuardLoader for PHP 7.4...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: 无法获取"/root/lnmp1.8/src/php-7.4.19/sapi/fpm/init.d.php-fpm" 的文件状态(stat): 没有那个文件或目录
chmod: 无法访问"/etc/init.d/php-fpm7.4": 没有那个文件或目录
Add php-fpm7.4 service at system startup...
服务 php-fpm7.4 信息读取出错:没有那个文件或目录
服务 php-fpm7.4 信息读取出错:没有那个文件或目录
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
Starting MySQL.. SUCCESS!
Starting php-fpmdone
Starting php-fpmdone
Failed to install php-7.4.19, you can download /root/install-mphp7.4.log from your server, and upload install-mphp7.4.log to LNMP Forum.

licess 发表于 2021-8-2 20:34:31

php源码包未完整下载,删除lnmp安装包 src目录下的php-7.4.19.tar.bz2 重新安装多php版本,或者使用full包进行安装
页: [1]
查看完整版本: 安装多版本php7.4.19失败