安装perl模块XML-LibXML报错

alex 排错评论阅读模式

报以下错误

[root@nagios XML-LibXML-2.0129]# perl Makefile.PL

Argument "6.55_02" isn't numeric in numeric ge (>=) at Makefile.PL line 34.

enable native perl UTF8

running xml2-config...didn't manage to get libxml2 config, guessing

options:

LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'

INC='-I/usr/local/include -I/usr/include'

If this is wrong, Re-run as:

$ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

 
 

Checking for ability to link against xml2...no

Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.

Try setting LIBS and INC values on the command line

Or get libxml2 from

http://xmlsoft.org/

If you install via RPMs, make sure you also install the -devel

RPMs, as this is where the headers (.h files) are.

 
 

Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter

to see the exact reason why the detection of libxml2 installation

failed or why Makefile.PL was not able to compile a test program.

 
 

 
 

使用yum安装libxml2libxml2-devel解决

yum install libxml2-devel

文章末尾固定信息

 
alex
  • 本文由 alex 发表于 2017年9月2日 14:12:20
  • 转载请务必保留本文链接:https://www.qnjslm.com/ITHelp/219.html
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定