使用CPAN之前的一些环境设置
# 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>'了。
参考: