cygwin 1.7.2 cpan error

Cygwin 升级到 1.7.2了,下载安装了开发包以及perl。进去cpan,首次运行当然要设置,选择自动设置,一阵滚屏后并没有期待的cpan>,而是如下错误:

Cannot do ‘initialize’ in Term::ReadLine::Gnu at /usr/lib/perl5/5.10/CPAN.pm line  272

看来Term::ReadLine::Gnu包安装有问题,但不晓得哪里出了问题。于是上CPAN.org下载Term-ReadLine-Gnu-1.19.tar.gz。解压后,运行perl MakeFile.pl,系统显示:

Could not find neither libtermcap.a, libncurses, or libcurses.

原来ncurse库没安装,赶紧运行Cygwin安装程序,选择devel目录下的libcurse、libcursews库,执行安装。回到shell,运行cpan,哈哈系统显示:

cpan shell — CPAN exploration and modules onstallation (v1.9402)
Enter ‘h’ for help.
cpan[1]>

Posted on