Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

[Solved]Problem with new Perlbrew installation

by mascip (Pilgrim)
on Mar 24, 2013 at 19:41 UTC ( #1025184=perlquestion: print w/ replies, xml ) Need Help??
mascip has asked for the wisdom of the Perl Monks concerning the following question:

EDIT: After 2h of investigations, i realised that i didn't have the latest version of perlbrew (0.60 instead of 0.61), and fixed it by simply doing:

$ perlbrew self-upgrade
SOLVED!
~ ~ ~ ~ ~

Hello, i've installed Perlbrew on a new computer last week and i have a problem: perlbrew list doesn't list the versions of perl that i have installed. On the other hand, perlbrew lib list works and displays: perl-5.16.3@devel Which is what i expect. And $PERLBREW_PERL is correct and equal to "perl-5.16.3";

I also have this error message when /home/user/perl5/perlbrew/etc/bashrc runs: bash: export: `/home/user/.perlbrew/libs/perl-5.16.3@devel";': not a valid identifier which comes up while the __perlbrew_activate subroutine is called.

Question 1: Any idea what is going on?

Question 2: I've tried to add print statements in the ~/perl5/perlbrew/bin/perlbrew executable, unsuccessully: i get strange bugs. Is that because this file is fatpacked, and it's not possible to modify the content of fatpacked files?

* Here is what i did last week to install it all:

I installed perlbrew with one of these two, i don't remember which one: wget --no-check-certificate -O - http://install.perlbrew.pl | bash or maybe curl -kL http://install.perlbrew.pl | bash

And then i did:

perlbrew install-ack perlbrew install-cpanm perlbrew install-patchperl perlbrew init
And i added the following line in my .bashrc:
source "/home/user/perl5/perlbrew/etc/bashrc"
I have verified: the /home/user/perl5/perlbrew/etc/bashrc script runs.

Then i did:

$ perlbrew install 5.16.3 $ perlbrew switch perl-5.16.3 $ perlbrew lib create devel $ perlbrew switch perl-5.16.3@devel $ perlbrew lib list # prints perl-5.16.3@devel $ perlbrew list # prints perl perl-5.16.3, and perl-5.16.3@devel $ cpanm Archive::Any # worked without a problem

And this week i come back with the problem i presented.

Thank you for any help!

Comment on [Solved]Problem with new Perlbrew installation
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1025184]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2015-07-02 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (30 votes), past polls