configure: error: Package requirements (libxml-2.0 >= 2.9.0) were not met: No package 'libxml-2.0' found
解决方案:dnf install libxml2-devel
2、异常信息:
-bash: dnf: command not found
解决方案:yum install dnf
3、异常信息:
configure: error: Package requirements (sqlite3 > 3.7.4) were not met: No package 'sqlite3' found
解决方案:dnf install sqlite-devel
4、异常信息:
checking for BZip2 in default path... not found configure: error: Please reinstall the BZip2 distribution
解决方案:dnf -y install bzip2-devel
5、异常信息:
configure: error: Package requirements (libcurl >= 7.29.0) were not met: No package 'libcurl' found
解决方案:dnf -y install libcurl-devel
6、异常信息:
configure: error: Package requirements (libpng) were not met: No package 'libpng' found
解决方案:dnf -y install libpng-devel
7、异常信息:
configure: error: Package requirements (libjpeg) were not met: Package 'libjpeg', required by 'virtual:world', not found
解决方案:dnf -y install libjpeg-devel
8、异常信息:
configure: error: Package requirements (freetype2) were not met: Package 'freetype2', required by 'virtual:world', not found
解决方案:dnf -y install freetype-devel
9、异常信息:
configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met: Package 'icu-uc', required by 'virtual:world', not found Package 'icu-io', required by 'virtual:world', not found Package 'icu-i18n', required by 'virtual:world', not found
解决方案:dnf -y install libicu-devel
10、异常信息:
configure: error: Package requirements (oniguruma) were not met: No package 'oniguruma' found
解决方案:yum install oniguruma-devel -y
11、异常信息:
configure: error: Package requirements (libxslt >= 1.1.0) were not met: No package 'libxslt' found
解决方案:dnf -y install libxslt-devel
12、异常信息:
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met: Package 'libzip', required by 'virtual:world', not found
解决方案:dnf -y install libzip-devel
13、异常信息:
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met: Requested 'libzip >= 0.11' but version of libzip is 0.10.1
解决方案:
1、先删除原来的安装:yum remove libzip-devel libzip
2、在线下载对应的版本:wget https://libzip.org/download/libzip-1.3.2.tar.gz --no-check-certificate
4、进入解压后的文件夹,执行配置脚本:./confugure
5、编译并安装:make & make install
6、安装完成后,查询/usr/local/lib目录下是否有pkgconfig目录,有的话执行命令export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"指定PKG_CONFIG_PATH,然后重新执行切换php解压之后的文件夹,执行./configure脚本即可
5、编译和安装
配置完成后,执行make指令对源代码进行编译,执行make install指令对源代码进行安装,也可以同时执行这两个指令,具体如下(注意:编译和安装都是在解压后的php文件夹下执行-即存在configure脚本的目录):
1、编译:make
本文地址:百科问答频道 https://www.neebe.cn/wenda/936282_2.html,易企推百科一个免费的知识分享平台,本站部分文章来网络分享,本着互联网分享的精神,如有涉及到您的权益,请联系我们删除,谢谢!