当前环境
CentOS Linux release 7.6.1810 (Core)
php 7.4.3
问题
前段时间在个人的服务器上想升级一下php
版本,然后就下载编译安装了7.4.3
版本。编译时遇到几个No package 'xxx' found
,比如No package 'sqlite3' found
,只需要网上搜一下安装对应的库就行了,比如对应sqlite3
的,执行yum install sqlite-devel
就可以了。这里不多赘述,网上搜一下就行了。
但是有个libzip
提示版本太低,yum
自带的是0.10
,网上各种升级安装,源码编译安装都不好用,还是会有相同的提示。
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11... no
configure: error: Package requirements (libzip >= 0.11) were not met:
Requested 'libzip >= 0.11' but version of libzip is 0.10.1
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
A