You are not logged in.

#1 2012-06-07 08:35:42

maxie
Member
Registered: 2010-12-25
Posts: 18

I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

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

#2 2012-06-07 08:41:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

Did you rebuild it after upgrading Perl?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-06-07 09:05:55

maxie
Member
Registered: 2010-12-25
Posts: 18

Re: I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

Yes, without success.

Offline

#4 2012-06-07 11:26:29

maxie
Member
Registered: 2010-12-25
Posts: 18

Re: I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

Downgrading to Perl v5.14.2 solved the problem.

Offline

#5 2012-06-07 15:38:38

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

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::Gnu

Offline

#6 2012-06-07 17:54:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

maxie wrote:

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-06-07 18:45:30

maxie
Member
Registered: 2010-12-25
Posts: 18

Re: I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

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

#8 2012-06-08 00:01:32

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: I cannot access CPAN (problem with Term::ReadLine::Gnu ?)

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

Board footer

Powered by FluxBB