如何为ActivePerl安装XML :: LibXML? [英] How do I install XML::LibXML for ActivePerl?

查看:252
本文介绍了如何为ActivePerl安装XML :: LibXML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Perl的新手,并且正在使用 ActivePerl
我收到以下错误:

I am new to Perl and I am using ActivePerl. I am getting the following error:


在@INC中找不到XML / LibXML.pm ...

Can't locate XML/LibXML.pm in @INC...

我已经尝试了所有方法,但是找不到安装XML :: LibXML的正确模块的步骤。

I have tried everything but cannot find the steps to install the "correct" module for XML::LibXML.

这正是正在发生的事情。我正在从命令提示符运行脚本:

Here is exactly what is going on. I am running a script from a command prompt:


c:\temp> perl myscript.pl

c:\temp>perl myscript.pl

myscript.pl的前几行:

The first few lines of myscript.pl:

#!/usr/bin/perl

use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
use HTTP::Date;
use XML::Parser;
use LWP::UserAgent;
use XML::LibXML;
use Archive::Extract;
use Encode;
use LWP::Simple;

require HTTP::Request;
...

然后我得到此错误:


c:\temp> perl myscript.pl在@INC中找不到
XML / LibXML.pm(@INC包含:
C :/ Perl / site / lib C:/ Perl / lib。)位于
myscript.pl第7行。BEGIN
失败-编译在
myscript.pl第7行中终止

c:\temp>perl myscript.pl Can't locate XML/LibXML.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at myscript.pl line 7. BEGIN failed--compilation aborted at myscript.pl line 7


推荐答案

您应该能够使用 ActivePerl Perl软件包管理器。安装ActivePerl时,应该已经创建了一个开始菜单快捷方式,请启动 GUI ,然后搜索xml-libxml和libxml-perl。

You should be able to install it with the ActivePerl Perl Package Manager. There should have been a start menu shortcut created when you installed ActivePerl, start the GUI and search for xml-libxml and libxml-perl.

-编辑

此处是有关在PPM中添加备用存储库和安装XML-LibXML

这篇关于如何为ActivePerl安装XML :: LibXML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆