centos7 ag安装错误解决
错误一
- 报错信息
configure: error: Package requirements (libpcre) were not met:
No package 'libpcre' 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 PCRE_CFLAGS
and PCRE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
- 解决方法
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
错误二
- 报错信息
configure: error: Package requirements (liblzma) were not met:
No package 'liblzma' 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 LZMA_CFLAGS
and LZMA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
- 解决方法
yum -y install xz-devel