安装软件提示缺少perl模块的解决方法
在安装软件的时候经常会出现缺少perl模块的提示.到底该安装哪些模块呢?
可以到 http://search.cpan.org/把缺少的模块名填入就可以找到应该安装哪些模块了.
[root@fc8 mqueue]# service MailScanner start
Starting MailScanner daemons:
incoming sendmail: [确定]
outgoing sendmail: [确定]
MailScanner: Can't locate Filesys/Df.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /usr/lib/MailScanner) at /usr/sbin/MailScanner line 66.
BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 66. [确定]
[root@fc8 mqueue]# perl -MCPAN -e shell
cpan>install Filesys::Df
[root@fc8 ~]# service MailScanner start
Starting MailScanner daemons:
incoming sendmail: [确定]
outgoing sendmail: [确定]
MailScanner: Can't locate Sys/Hostname/Long.pm in @INC (@INC contains: /usr/lib/MailScanner /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /usr/lib/MailScanner) at /usr/sbin/MailScanner line 68.
BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 68. [确定]
install Getopt::Long
[root@fc8 mqueue]# perl -MCPAN -e shell
cpan>install Sys::Hostname::Long
总结:关键是看懂其中的提示信息Sys/Hostname/Long.pm
安装的软件模块的方法就是 install 蓝色字::粉色字::青色字.以后再也不怕缺少模块了,只要能够上网就能够即时把缺少的东西安装上了