Subject: | cpan -g Module::Name not working at first (CPAN version is 2.05) |
I have a perl 5.20.1 created with perlbrew running on OSX I tried to use cpan -g Module::Name and got some strange behavior. I have not used the cpan client in this perl earlier so before I tried cpan -g I ran 'cpan', let it autoconfigure and exited the shell. Without letting in download the index files first. I think this was the root of the problem as after it downloaded the index files, the command "cpan -g WWW::Mechanize" worked.
Anyway, here is my interaction:
$ cpan -g WWW::Mechanize
Use of uninitialized value $description in concatenation (.) or string at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/App/Cpan.pm line 441.
-- ignoring other arguments
Checking WWW::Mechanize
CPAN: Storable loaded ok (v2.51)
Bizarre copy of ARRAY in list assignment at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/Carp.pm line 228.
air:Downloads gabor$
air:Downloads gabor$
air:Downloads gabor$ cpanm CPAN
--> Working on CPAN
Fetching http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-2.10.tar.gz ... OK
Configuring CPAN-2.10 ... OK
Building and testing CPAN-2.10 ... ^C
$ cpan -g WWW-Mechanize
Use of uninitialized value $description in concatenation (.) or string at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/App/Cpan.pm line 441.
-- ignoring other arguments
Checking WWW-Mechanize
CPAN: Storable loaded ok (v2.51)
CPAN: LWP::UserAgent loaded ok (v6.06)
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v1.11)
Reading '/Users/gabor/.cpan/sources/authors/01mailrc.txt.gz'
CPAN: Compress::Zlib loaded ok (v2.064)
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/Users/gabor/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Sat, 14 Mar 2015 20:53:19 GMT
..............
New CPAN.pm version (v2.10) available.
[Currently running version is v2.05]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
..............................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/Users/gabor/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /Users/gabor/.cpan/Metadata
Can't call method "cpan_file" on an undefined value at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/App/Cpan.pm line 1000.
air:Downloads gabor$ cpan -g WWW::Mechanize
Use of uninitialized value $description in concatenation (.) or string at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/App/Cpan.pm line 441.
-- ignoring other arguments
Checking WWW::Mechanize
CPAN: Storable loaded ok (v2.51)
Reading '/Users/gabor/.cpan/Metadata'
Database was generated on Sat, 14 Mar 2015 20:53:19 GMT
this managed to download the distribution.