You are not logged in.
Hi,
when I try to start cpan, I get the following error.
$ cpan
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "C",
LC_MESSAGES = "C",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Cannot do `initialize' in Term::ReadLine::Gnu at /usr/share/perl5/core_perl/CPAN.pm line 273.
Did anybody had this problem too and knows how to solve it?
Perl Version: v5.16.0
maxie
Offline
Did you rebuild it after upgrading Perl?
Offline
Yes, without success.
Offline
Downgrading to Perl v5.14.2 solved the problem.
Offline
Did you rebuild the perl-term-readline-gnu package or did you rebuild the Term::ReadLine::Gnu module from the cpan shell? Do you have two versions installed? One in /usr/lib/perl5/site_perl and one in /usr/lib/perl5/vendor_perl? It's easier on the sanity to commit to one or the other: packages or cpan. The version installed by cpan (under site_perl) will take precedence on the installed package (under vendor_perl).
If you prefer to upgrade it with the cpan shell, you can disable the loading of Term::ReadLine::Gnu by setting the PERL_RL environment variable:
PERL_RL=0 cpan install Term::ReadLine::GnuOffline
Downgrading to Perl v5.14.2 solved the problem.
No, that masks the problem... The solution is to rebuild against current Perl, as Juster says.
Offline
juster:
I used the package perl-term-readline-gnu from the AUR. And I found only one version in /usr/lib/perl5/site_perl. I did not plan to use the cpan shell for installing Term::ReadLine::Gnu, I just got the error message when I tried to open the cpan shell. And generally, I would prefer using packages instead of cpan (I guess my formulation before was not clear).
jasonwryan:
I know that this was not a solution for my problem, but during the day I needed a quick workaround.
Thank you for your help so far.
Offline
Delete (rm) the one in site_perl. Check under the auto dir too. The perl-term-readline-gnu package installs under vendor_perl. Use pacman -Ql to list its files.
Offline