Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Installing external libraries for perlbrew perl

by taint (Chaplain)
on Dec 19, 2013 at 04:30 UTC ( #1067769=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Installing external libraries for perlbrew perl
in thread Installing external libraries for perlbrew perl

Greetings, bangor.

What shell area you using? Like sh, bash, csh, tcsh, zsh, etc. Chances are you should be able to simply open your terminal app, and do

$PATH
This will likely emit a long string. Which will contain all the directories within your search %PATH. Are any of the directories that you indicate your failed install(s) are complaining about, in the string of directories $PATH told you about?

You do know that perlbrew messes with your {ENV}vironment, don't you? You should already have a "system" Perl installed -- that which the OS installed, as part of it's base. Your ENV determines which Perl is used, whenever you type "perl" in your terminal.

At this point, I can't help but think your ENV is hosed. Not that it can't be corrected. But you will need to know which Perl you're running under. Because it makes all the difference, when using Perl, and when, and where to install Modules, and their dependencies.

HTH

--Chris

Yes. What say about me, is true.


Comment on Re^3: Installing external libraries for perlbrew perl
Download Code
Re^4: Installing external libraries for perlbrew perl
by bangor (Beadle) on Dec 19, 2013 at 05:03 UTC
    $PATH gives me
    -bash: /Users/user/perl5/perlbrew/bin:/Users/user/perl5/perlbrew/perls +/perl-5.14.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X1 +1/bin: No such file or directory
    I think I'm getting somewhere now. I added the following line to my bash profile
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    That also changes my perl version to the one in /opt/local/bin but I can invoke cpan with
    sudo /Users/user/perl5/perlbrew/perls/perl-5.14.1/bin/perl5.14.1 -MCPA +N -e shell
    Now when I try to install GD it nearly succeeds, failing 1 test out of 13 which seems to be something to do with the JPEG library. I'll have to figure that out tomorrow as I'm exhausted now. Thanks for the help.

      Well, it's a start. But there's more you should consider/discover before going on a Module install(ing) frenzy. :) One thing that appears to me, out of place

      -bash: /Users/user/perl5/perlbrew/bin:/Users/user/perl5/perlbrew/perls +/perl-5.14.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X1 +1/bin: No such file or directory ^^^^^^^^^^^^^^^^^^^^^^^^^
      The "No such file or directory" shouldn't be there. I think a little more investigation of your ENVironment is probably in order. Just so you know exactly where you stand, at any given moment.

      Well. Take care.

      --Chris

      Yes. What say about me, is true.
      
        The "No such file or directory" shouldn't be there.

        Well, the "No such file or directory" was only there, because you told bangor to do $PATH, as a result of which the shell tried to run a program named "/Users/user/perl5/perlbrew/bin:/Users/user/perl5/perlbrew/perls/perl-5.14.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin", which of course doesn't exist  ;)

        A more direct way to find out the contents of PATH would've been to run echo $PATH

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2014-07-29 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls