2011-05-03 67 views
1

尝试在Perl中使用RPC XML时收到此错误消息。找不到RPC/XML.pm Perl和RPC XML

Software error:

Can't locate RPC/XML.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at test.pl line 9. BEGIN failed--compilation aborted at test.pl line 9. For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.

首先我想我没有安装XML-RPX。但是当我看着一个phpinfo() - 我发现这个文件:

xmlrpc_error_number 0 0

xmlrpc_errors Off Off

这个错误是怎么显示的?它看起来像我这样安装和PHP“找到它”。但不是Perl。

回答

7

具有xmlrpc配置的PHP并不表示已安装RPC :: XML Perl模块,并且错误消息强烈表明它不是(如果是,则它位于Perl库路径之外)。

您需要install RPC :: XML模块。

+0

工作就像一个魅力,谢谢! – Fredrik 2011-05-05 07:09:42