关于 安装php 7、8 过程中提示 缺少libxml2依赖问题。

第一步确定是否缺少libxml依赖。
缺少依赖 使用

 yum install libxml-dev
 yum install libxml  

进行安装依赖服务。
重新使用./configure 命令依旧提示报错:

checking for libxml-2.0 >= 2.7.6... no
configure: error: Package requirements (libxml-2.0 >= 2.7.6) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

根据报错提示进行 LUA_CFLAGS、 LUA_LIBS 进行

export  LUA_CFLAGS=  "  /usr/local/bin/lua  "
export      LUA_LIBS="/usr/local/lib/lua" 

猜你喜欢

转载自blog.csdn.net/Ji_9904092/article/details/113132872
今日推荐