LNMP1.8安装5.3,然后多版本再安装5.4出错
本帖最后由 onephp 于 2022-6-16 22:05 编辑因为项目比较陈旧,下载的LNMP1.8版本。系统环境为Ubuntu20。
军哥虽然您已经提示Ubuntu不能安装低版本,但是我把限制去掉了,php5.3也能正常运行。这完全是因为客户机器必须是Ubuntu20,不可更改。
麻烦军哥看一下,报错的信息应该是init.d.php-fpm这个文件最后没编译出来。
Install ZendGuardLoader for PHP 5.4...
Notice:not found!!!download now...
--2022-06-16 21:51:03--https://soft.vpser.net/web/zend/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
Resolving soft.vpser.net (soft.vpser.net)... 45.34.93.228, 2600:3c01::f03c:91ff:fe92:1a06
Connecting to soft.vpser.net (soft.vpser.net)|45.34.93.228|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
The file is already fully retrieved; nothing to do.
Write ZendGuardLoader to php.ini...
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat '/home/gxing/lnmp1.8-full/src/php-5.4.45/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm5.4': No such file or directory
Add php-fpm5.4 service at system startup...
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
Starting mysql (via systemctl): mysql.service.
Starting php-fpmdone
^[
php 5.3是不需要依赖icu的所以可以安装成功
php 5.4+默认都带intl模块,如果不需要intl模块,编辑 include/php.sh、include/multiplephp.sh、include/upgrade_php.sh 查找 --enable-intl 删掉对应php版本里面的 --enable-intl ,去掉intl模块的话应该是可以安装成功的
php 7.1及以下版本对比较新版本的linux发行版支持都或多或少有问题,虽然已经打了很多补丁了 日志文件在1楼,原文件名叫 mphp5.4.log 经过测试,无论是从php5.3升级到php5.4还是直接新安装lnmp里的php5.4,都是报这个错。 尝试安装了freetype-dev,现在/usr/local/php目录有了,以前连php目录也没有,但是里面只有etc目录。
发现新错误,但是ICU明明已经安装了:
checking for icu-config... no
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target 'install'.Stop.
Copy new php configure file...
Modify php.ini......
include/php.sh: line 86: pear: command not found
include/php.sh: line 87: pecl: command not found licess 发表于 2022-6-17 10:18
php 5.3是不需要依赖icu的所以可以安装成功
php 5.4+默认都带intl模块,如果不需要intl模块,编辑 include/ ...
军哥牛啊,手到病除。去掉了就编译成功了,这个问题我搜了SO上几乎没有,军哥一下解决了,太棒了。
页:
[1]