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

Re^4: Installing external libraries for perlbrew perl

by bangor (Scribe)
on Dec 19, 2013 at 05:03 UTC ( #1067771=note: print w/replies, xml ) Need Help??


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

$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.

Replies are listed 'Best First'.
Re^5: Installing external libraries for perlbrew perl
by taint (Chaplain) on Dec 19, 2013 at 05:13 UTC

    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

        Thanks Eliya. That's exactly correct.

        ++ to you for catching me on it. :)

        --Chris

        Yes. What say about me, is true.
        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2018-11-18 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (205 votes). Check out past polls.

    Notices?