Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Using Perlbrew macOS impossible to install distributions

by kevbot (Vicar)
on Nov 28, 2017 at 09:09 UTC ( [id://1204401]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Using Perlbrew macOS impossible to install distributions
in thread Using Perlbrew macOS impossible to install distributions

This output looks strange to me. It appears that there are two different user accounts involved (/Users/ad and /Users/fc). It appears that you are trying to run the cpan command when you are logged into the ad account, but you installed the brewed perl in the fc account. Is that the case? I always use brewed perls from the same account that I used to install them. Try to confirm that you are using the cpan executable from your brewed perl. Typing this at the command line,

which cpan
should give you output like this,
/Users/fc/perl5/perlbrew/perls/perl-5.26.1/bin/cpan

If the output is /usr/bin/cpan, then you are still using the cpan command that is part of the system perl. After you installed perl-5.26.1 did you switch to it with the following command?

perlbrew switch perl-5.26.1
If you did not run the switch command then you are still using the system perl (which is probably not what you want).

Once you confirm that you are using your brewed perl, I recommend that you install cpanminus (see App::cpanminus) using the following command,

curl -L https://cpanmin.us | perl - App::cpanminus
Then you can use cpanm to install modules (I find that its easier to use than the older cpan command).

Replies are listed 'Best First'.
Re^4: Using Perlbrew macOS impossible to install distributions
by Anonymous Monk on Nov 28, 2017 at 09:41 UTC

    My error: I just erroneously changed fc->ad when I was editing my post (sorry). I was using the correct perl and can was the one supposed to be

    Again, your suggestion saved my day. After installing cpanminus I can install the modules like a breeze. THANK YOU

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1204401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found