现在的位置: 首页 > 综合 > 正文

使用CPAN之前的一些环境设置

2012年08月19日 ⁄ 综合 ⁄ 共 691字 ⁄ 字号 评论关闭
# perl -MCPAN -e shell 

此时会问一大堆问题,大多数直接enter即可。

...... 

 Where is your gzip program? [/bin/gzip] 

Where is your tar program? [/bin/tar] 
Where is your unzip program? [/usr/bin/unzip] 
Where is your make program? [/usr/bin/make] 
Where is your links program? [/usr/bin/links] 
Where is your wget program? [/usr/bin/wget] 
Warning: ncftpget not found in PATH

....

这个warning意味着它没有找到ncftpget,另开一个session安装它。

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm 

# yum list *NCFTP* 

# yum install ncftp 

# whereis ncftpget 

ncftpget: /usr/bin/ncftpget /usr/share/man/man1/ncftpget.1.gz 

 

等回答完若干问题以后,就可以见到'cpan>'了。

 

 参考:

http://www.question-defense.com/2010/01/25/install-ncftp-ncftpget-ncftpput-using-yum-on-centos-linux-server 

抱歉!评论已关闭.