Problems with installing libxml

When executing ./configure --without-lzma;:

Checking zlib
./configure: line 11712: syntax error near unexpected token `Z,zlib,'

./configure: line 11712: ` PKG_CHECK_MODULES(Z,zlib,'
make[1]: Entering directory `/export/home/waf_sdk/src/third-lib/libxml2-2.9.5'
make[1]: *** No target specified and makefile not found. Stop.
make[1]: Leaving directory `/export/home/waf_sdk/src/third-lib/libxml2-2.9.5'
make: *** [libxml2.a] Error 2
 

The reason is that the version of pkg-config is too low, and the parameter identification of the PKG_CHECK_MODULES function is wrong. After installing 0.27.1, the problem is solved:

[root@A01-R02-I180-89-99G4794 src]# pkg-config --version
0.23

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325452150&siteId=291194637