php加速模块cpan模块,查看perl模块和cpan模块介绍

1. Check whether you have 'perl-CPAN‘ package installed in your system.

For checking ‘perl-CPAN’ package run following in your shell.

[root@host13 ~]# rpm -q perl-CPAN

If perl-CPAN package is installed, you will get the output like this

perl-CPAN-1.9402-116.fc13.i686

else, you will get output like this

package perl-CPAN is not installed

and that the case you need to install it. You can install it via using yum, yum install perl-CPAN or from rpm, from “rpm.pbone.net” you can obtain “perl-CPAN rpm’s”.

2. Running the command "perl -MCPAN -e shell" will brought you to a CPAN command prompt

[root@host13 ~]# perl -MCPAN -e shell

Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9402)

Enter 'h' for help.

cpan[1]>

Note : If this is the first time you’ve run CPAN, it’s going to ask you a series of questions – in most cases the default answer is fine.

If you got an error given below, then you need to confirm the "perl-CPAN" package’s existence in the sytem

Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .).

BEGIN failed--compilation aborted.

3. From this command prompt you can install the perl modules.

Examples:

cpan[1]> install MIME::Entity

cpan[1]> install MIME::Parser

cpan[1]> install Crypt::PasswdMD5

cpan[1]> install Term::ReadPassword

cpan[1]> install Crypt::CBC

cpan[1]> install Crypt::Blowfish

cpan[1]> install Daemon::Generic

cpan[1]> install DateTime

cpan[1]> install SOAP::Lite

Alternative for second and third step.

[root@host13 ~]# perl -MCPAN -e 'install HTML::Template'

[root@host13 ~]# perl -MCPAN -e 'install MIME::Entity'

[root@host13 ~]# perl -MCPAN -e 'install Crypt::PasswdMD5'

[root@host13 ~]# perl -MCPAN -e 'install Term::ReadPassword'

[root@host13 ~]# perl -MCPAN -e 'install Crypt::CBC'

[root@host13 ~]# perl -MCPAN -e 'install Crypt::Blowfish'

[root@host13 ~]# perl -MCPAN -e 'install Daemon::Generic'

[root@host13 ~]# perl -MCPAN -e 'install DateTime'

[root@host13 ~]# perl -MCPAN -e 'install SOAP::Lite'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值