No package 'libxml-2.0' found configure: error: Package requirements (libxml-2.0 >= 2.7.6) were not met:
No package 'libxml-2.0' found
解决方法
1
yum install libxml2-devel
中途可能需要更新其他的依赖, 确定就可以了
1 2 3 4
No package 'openssl' found configure: error: Package requirements (openssl >= 1.0.1) were not met:
No package 'openssl' found
解决方法
1
yum install openssl-devel
1 2 3 4
No package 'sqlite3' found configure: error: Package requirements (sqlite3 > 3.7.4) were not met:
No package 'sqlite3' found
解决方法
1
yum install sqlite-devel
1 2 3 4
No package 'libcurl' found configure: error: Package requirements (libcurl >= 7.15.5) were not met:
No package 'libcurl' found
解决方法
1
yum install libcurl-devel
1 2 3 4 5 6
Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:
No package 'icu-uc' found No package 'icu-io' found No package 'icu-i18n' found
解决方法
1
yum install libicu-devel
1 2 3 4 5 6
configure: error: C++ preprocessor "/lib/cpp" fails sanity check checking whether g++ accepts -g... no checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/data/programs/php-7.4.7': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log'for more details
解决方法, 缺少g++库, 安装
1
yum install gcc-c++
1 2 3 4
No package 'oniguruma' found configure: error: Package requirements (oniguruma) were not met:
No package 'libpng' found configure: error: Package requirements (libpng) were not met:
No package 'libpng' found
解决方法
1
yum install libpng-devel
1 2 3 4
No package 'libjpeg' found configure: error: Package requirements (libjpeg) were not met:
No package 'libjpeg' found
解决方法
1
yum install libjpeg-devel
1 2 3 4
No package 'freetype2' found configure: error: Package requirements (freetype2) were not met:
No package 'freetype2' found
解决方法
1
yum install freetype-devel
配置完成
出现下面的提示就代表已经配置成功了, 可以进行编译安装了 +——————————————————————–+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +——————————————————————–+