VPS侦探论坛

标题: 安装php多版本失败 [打印本页]

作者: ichina    时间: 2020-3-17 16:39
标题: 安装php多版本失败
lnmp1.2升级管理脚本1.4的。
安装多版本php时安装失败了,

操作系统 CentOS 6.5 64位
nginx
内存1G,cpu1核

原先安装lnmp时装的是php5.4.45的,
管理脚本成功升到1.4了,想安装php5.6的失败,安装5.5也是。

附件上传了,
谢谢


作者: licess    时间: 2020-3-17 19:39
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.

lnmp 1.2时候和lnmp 1.4的编译参数和不同php版本之间都是有差异的,可以执行:
for packages in patch wget crontabs unzip tar ca-certificates net-tools libc-client-devel psmisc libXpm-devel git-core c-ares-devel libicu-devel libxslt libxslt-devel xz expat-devel bzip2 bzip2-devel libaio-devel rpcgen libtirpc-devel perl python-devel cyrus-sasl-devel sqlite-devel oniguruma-devel;
do yum -y install $packages; done
后再重新升级php试一下




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4