Perl XML :: LibXML安装失败

前端之家收集整理的这篇文章主要介绍了Perl XML :: LibXML安装失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试通过CPAN安装Perl XML :: Lib XML模块,但收到以下错误.
我正在使用 Windows 7机器和Perl v5.16.1.我做了很多搜索,但没有得到任何解决方案.

应该是什么问题?

Set up gcc environment - 3.4.5 (mingw-vista special r3)
enable native perl UTF8
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.
**No 'Makefile' created  SHLOMIF/XML-LibXML-2.0014.tar.gz
  C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK**
Running make test
  Make had some problems,won't test
Running make install
  Make had some problems,won't install
**Could not read Metadata file. Falling back to other methods to determine prerequisites**
Failed during this command:
 SHLOMIF/XML-LibXML-2.0014.tar.gz             : writemakefile NO -- No 'Makefile' created

解决方法

目前尚不清楚您使用的是哪种Perl发行版.在Windows上,最简单的方法是使用 ActivePerl及其本机包管理器ppm(不是CPAN).

在我的Windows 7机器上,我能够使用此命令安装XML :: LibXML而没有任何问题:

ppm install XML::LibXML

猜你在找的Perl相关文章