Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

[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
~ ~ ~ ~ ~

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 - | bash or maybe curl -kL | 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!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1025184]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2018-05-27 06:14 GMT
Find Nodes?
    Voting Booth?