Perl的一些小知识点

之前曾简单的写/改写过几个Perl脚本,现在又碰到一个Perl写的脚本,于是先快速学习一下 Perl的相关知识。

搜索关键字:
  • perl 快速 学习
  • perl 教程
  • perl tutorial
  • Perl 打印字符串
  • Perl 注释
  • Can’t locate Net/LDAP.pm in @INC #AOL&Baidu搜索
在Linux下如何安装在Perl脚本里用到的模块?

Can’t locate Net/LDAP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./xxx.pl line 40.
BEGIN failed–compilation aborted at ./xxx.pl line 40.

方法一:直接yum search/install试试

方法二:CPAN或源码编译安装

The scripts outputs “Can’t locate Net/SNMP.pm in @INC…..”
You don’t have Net::SNMP installed, see below
How do I install Net::SNMP perl module ?
There are 2 ways of doing this

1) By CPAN (best)

on command line, as root :

2) “By hand”

Get the folowings modules (tar.gz format) on www.cpan.org
– Crypt::DES
– Digest::MD5
– Digest::SHA1
– Digest::HMAC
– Net::SNMP

for each one (you must install Net::SNMP at the end) :

 

参考链接:

声明: 除非注明,CrazyOf.me文章均为原创,转载请以链接形式标明本文地址,谢谢!
https://crazyof.me/blog/archives/2114.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注