我在CentOS5.5上测试我的项目安装脚本.我的项目需要Date :: Manip模块,需要功能模块......
当我尝试通过CPAN 安装它(功能)时,CPAN想要安装Perl 5.9.5 ......
*** WHOA THERE!!! ***
This is an UNSTABLE DEVELOPMENT release.
The version of this perl5 distribution is 9, that is, odd,
(as opposed to even) and that signifies a development release.
If you want a maintenance release, you want an even-numbered version.
Do ***NOT*** install this into production use.
Data corruption and crashes are possible.
It is most seriously suggested that you do not continue any further …Run Code Online (Sandbox Code Playgroud) Parse :: CPAN :: Authors模块的目的是什么?
use Parse::CPAN::Authors;
# must have downloaded
my $p = Parse::CPAN::Authors->new("01mailrc.txt.gz");
# either a filename as above or pass in the contents of the file
my $p = Parse::CPAN::Authors->new($mailrc_contents);
my $author = $p->author('LBROCARD');
# $a is a Parse::CPAN::Authors::Author object
# ... objects are returned by Parse::CPAN::Authors
print $author->email, "\n"; # leon@astray.com
print $author->name, "\n"; # Leon Brocard
print $author->pauseid, "\n"; # LBROCARD
# all the author objects
my @authors = $p->authors;
Run Code Online (Sandbox Code Playgroud)
描述
Comprehensive Perl Archive …
我是 perl 的菜鸟。搜索“如何安装 perl 模块”我确实安装了 cpan 并尝试了以下操作:
sudo cpan install Logger
Run Code Online (Sandbox Code Playgroud)
但收到:
Going to read '/Users/steve/.cpan/Metadata'
Database was generated on Wed, 09 Oct 2013 06:53:03 GMT
Warning: Cannot install Logger, don't know what it is.
Try the command
i /Logger/
to find objects with matching identifiers.
Run Code Online (Sandbox Code Playgroud)
所以我也试过了:
cpan[1]> i Logger
Going to read '/Users/steve/.cpan/Metadata'
Database was generated on Wed, 09 Oct 2013 06:53:03 GMT
No objects found of any type for argument Logger
Run Code Online (Sandbox Code Playgroud)
以下是一些进口:
use TDScli;
use Logger;
Run Code Online (Sandbox Code Playgroud) 我无法获得一个名为RepeatMasker的程序来工作.我收到以下错误:
~$ RepeatMasker
Can't locate Text/Soundex.pm in @INC (you may need to
install the Text::Soundex module) (@INC contains: /home/florian/Masterarbeit/RepeatMasker
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.22.1
/usr/local/share/perl/5.22.1
/usr/lib/x86_64-linux-gnu/perl5/5.22
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22
/usr/share/perl/5.22 /usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base .)
at /home/florian/Masterarbeit/RepeatMasker/Taxonomy.pm line 83.
BEGIN failed--compilation aborted at /home/florian/Masterarbeit/RepeatMasker/Taxonomy.pm line 83.
Compilation failed in require at /home/florian/Masterarbeit/RepeatMasker/RepeatMasker line 313.
BEGIN failed--compilation aborted at /home/florian/Masterarbeit/RepeatMasker/RepeatMasker line 313.
Run Code Online (Sandbox Code Playgroud)
现在,我尝试通过cpan/cpanm安装缺少的模块:
~$ cpan install Text::Soundex
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: Storable loaded ok (v2.53_01)
Reading '/home/florian/.cpan/Metadata'
Database was generated on …Run Code Online (Sandbox Code Playgroud) 对不起我的原始帖子。我在几个方面都存在误解,因此我将澄清我想要的内容以及我要纠正的地方。
试图获取File :: Find :: Rule。
进入CPAN上的Files :: Find页面并点击下载
1)认为将下载Find :: File下的任何软件包。即File :: Find :: *,包括Rule。
我现在知道Rule包位于File :: Find名称空间中?(如果该词在这里适用),但必须单独获得。
2)点击下载,我得到的是perl.5.26,这使我感到困惑。所以现在我知道File :: Find与Perl一起打包,因此我得到了整个Perl包。即核心包。
我现在知道了