解决LNMP1.7版本安装升级php7.4版本出现的问题.
Uncompress php-7.4.10.tar.bz2...cd php-7.4.10...
configure: WARNING: unrecognized options: --with-png, --enable-zip, --without-libzip
报以上警告.
参数写法有问题
第一是with-png 找不到lib文件
第二因为php从7.4开始删除自带的libzip详见php官方
详细解决参照,自行安装libzip. 地址:http://loulin.bid/53.html
补充内容 (2020-9-8 11:38):
with-png-dir ,没有装http://www.libpng.org/pub/png/libpng.html装一下,也可以指定路径,看自己需求 with-png 已经移除 ,libzip版本有要求,参数改为with-zip无libzip路径参数
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
Requested 'libzip != 1.7.0' but version of libzip is 1.7.0
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
页:
[1]