我第一次尝试在我的系统 Ubuntu 12.04 上使用 Perl。我安装了 Perl v.5.14.2。
我查找了如何安装 Perl 模块,所以我开始如下:
$ perl -MCPAN -e shell
向导开始配置环境,如下所示:http: //pastebin.com/5hn8vkb5
虽然,它在中间停止并显示以下错误消息:
...
Checksum for /home/john/.cpan/sources/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz ok
---- Unsatisfied dependencies detected during ----
---- APEIRON/local-lib-1.008009.tar.gz ----
ExtUtils::MakeMaker [build_requires]
Running make test
Make had some problems, won't test
Delayed until after prerequisites
Running make install
Make had some problems, won't install
Delayed until after prerequisites
Can't locate local/lib.pm in @INC (@INC contains:
/home/john/perl5/lib/perl5
/etc/perl
/usr/local/lib/perl/5.14.2
/usr/local/share/perl/5.14.2
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.14
/usr/share/perl/5.14
/usr/local/lib/site_perl
/home/john/Desktop)
at /usr/share/perl/5.14/CPAN/FirstTime.pm line 1300.
如何在我的 Ubuntu 安装中正确设置 Perl 环境?
中断向导并再次重新启动后,不再有错误消息。如何再次启动向导,以便我可以在这里选择:
你想要什么方法?(选择“local::lib”、“sudo”或“manual”)[local::lib]