gpt4 book ai didi

xml - Perl XML::LibXML 安装失败

转载 作者:数据小太阳 更新时间:2023-10-29 02:05:12 33 4
gpt4 key购买 nike

我试图通过 CPAN 安装 Perl XML::LibXML 模块,但出现以下错误。我正在使用 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及其 native 包管理器 ppm(不是 CPAN)。

在我的 Windows 7 机器上,我可以使用以下命令毫无问题地安装 XML::LibXML:

ppm install XML::LibXML

关于xml - Perl XML::LibXML 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13834056/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com