VPS侦探论坛

 找回密码
 注册
查看: 3215|回复: 3

关于阿里云centos7.4使用lnmp1.5将php升级至7.3.0

[复制链接]
发表于 2018-12-16 09:34:51 | 显示全部楼层 |阅读模式

系统:阿里云centos7.4
升级php版本为7.3.0时会报错
  1. configure: error: system libzip must be upgraded to version >=**0.11
复制代码


编译安装libzip >= 1.5.0的版本需要 版本>=3.0.2的cmake
当我安装好1.5.1的libzip后,用./upgrade.sh时,脚本会判定libzip未安装,然后用yum重新安装一个libzip...我的解决方法是直接在include/upgrade_php.sh搜索libzip然后删除libzip-devel
当我完成上述操作再使用./upgrade.sh时会报错
  1. configure: error: off_t undefined; check your library configuration
复制代码

解决方法是输入以下命令

  1. echo '/usr/local/lib64
  2. /usr/local/lib
  3. /usr/lib
  4. /usr/lib64'>>/etc/ld.so.conf&&ldconfig -v
复制代码

最终成功安装php7.3.0

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-12-16 11:46:49 | 显示全部楼层


As of PHP 7.3.0, building against the bundled libzip is discouraged, but still possible by adding --without-libzip to the configuration.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2018-12-16 13:21:27 | 显示全部楼层

我都没有这个提示,直接升级到php7.3.0成功了!可能是因为我的CentOS已经update到7.6的缘故吧!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-12-16 14:55:00 | 显示全部楼层



只到7.2.6 反正1.6也快来了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 09:20 , Processed in 0.026623 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表