加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Perl XML :: LibXML安装失败

发布时间:2020-12-16 06:17:36 所属栏目:大数据 来源:网络整理
导读:我正在尝试通过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 UTF8Chec
我正在尝试通过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:Perlbinperl.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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读