It seems there have been no postings to the list for over a year, but
here goes anyway.
Last night I installed Perl 5.16.1 in /usr/local/ and immediately
encountered problems when I tried to install and update modules using
CPAN. The error is copied below. I could see no solution to the
problem and was expecting a very tiresome late night, until by some
stroke of luck I thought of trying cpanplus to install the modules
and to install CPAN itself.
You can imagine my relief when this worked, and now CPAN runs without a hitch.
JD
-> sudo ./cpanp
CPANPLUS::Shell::Default -- CPAN
exploration and module
installation (v0.9121)
*** Please report bugs to
<bug-cpanp...@rt.cpan.org>.
*** Using CPANPLUS::Backend
v0.9121. ReadLine support
enabled.
*** Type 'p' now to show start up log
Did you know...
You can install modules by URL
using 'i URL'
CPAN Terminal> install Net::SMTP::SSL
[MSG] No '/Users/jd/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] No '/Users/jd/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] No '/Users/jd/.cpanplus/custom-sources' dir, skipping custom sources
Installing Net::SMTP::SSL (1.01)
*** Install log written to:
/Users/jd/.cpanplus/install-logs/Net-SMTP-SSL-1.01-1347232926.log
Module 'Net::SMTP::SSL' installed successfully
No errors installing all modules
CPAN Terminal> install Net::SSLeay
Installing Net::SSLeay (1.48)
...
Module 'Net::SSLeay' installed successfully
No errors installing all modules
CPAN Terminal> install CPAN
Installing CPAN (1.9800)
*** Install log written to:
/Users/jd/.cpanplus/install-logs/CPAN-1.9800-1347233052.log
Module 'CPAN' installed successfully
No errors installing all modules
______________________________________________________
00:17:39 User:jd Cwd: /usr/local/bin
-> sudo ./cpan
Password:
cpan[1]> r
Database was generated on Sun, 09
Sep 2012 14:59:47 GMT
Catching error: "Can't locate
DBI.pm in \@INC (\@INC contains:
/usr/local/lib/perl5/site_perl/5.16.1/darwin-2level
/usr/local/lib/perl5/site_perl/5.16.1
/usr/local/lib/perl5/5.16.1/darwin-2level
/usr/local/lib/perl5/5.16.1
/usr/local/lib/perl5/site_perl/5.14.2
/usr/local/lib/perl5/site_perl/5.14.0
/usr/local/lib/perl5/site_perl/5.12.3
/usr/local/lib/perl5/site_perl/5.12.2
/usr/local/lib/perl5/site_perl
/usr/local/bin) at
/usr/local/lib/perl5/site_perl/5.14.0/CPAN/SQLite/DBI.pm
line 7.\cJBEGIN
failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.14.0/CPAN/SQLite/DBI.pm
line 7.\cJCompilation failed in
require at (eval 26) line
2.\cJ\cI...propagated at
/usr/local/lib/perl5/5.16.1/base.pm
line 84.\cJBEGIN
failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.14.0/CPAN/SQLite/DBI/Search.pm
line 8.\cJCompilation failed in
require at
/usr/local/lib/perl5/site_perl/5.14.0/CPAN/SQLite/Search.pm
line 9.\cJBEGIN
failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.14.0/CPAN/SQLite/Search.pm
line 9.\cJCompilation failed in
require at
/usr/local/lib/perl5/site_perl/5.14.0/CPAN/SQLite.pm
line 78.\cJ" at
/usr/local/lib/perl5/5.16.1/CPAN.pm
line 392.
CPAN::shell() called at
/usr/local/lib/perl5/5.16.1/App/Cpan.pm
line 295
App::Cpan::_process_options('App::Cpan')
called at
/usr/local/lib/perl5/5.16.1/App/Cpan.pm
line 364
App::Cpan::run('App::Cpan')
called at ./cpan line 11