Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: MAC Perl EXTERN.H Make Issues

by tangent (Parson)
on Oct 26, 2018 at 14:30 UTC ( [id://1224731]=note: print w/replies, xml ) Need Help??


in reply to MAC Perl EXTERN.H Make Issues

I use perlbrew for Perl, and I use Homebrew to install external libraries. The key thing I learnt when setting this up was to modify my .profile file - it currently looks like this:
source ~/perl5/perlbrew/etc/bashrc export PATH="/usr/local/opt/libxml2/bin:$PATH" export PATH=/usr/local/bin:/usr/local/sbin:~/bin:$PATH
The first line means that when I fire up perl in the terminal it will use the current perlbrew version of Perl, which also means that cpan will install modules in the correct location for that Perl.

The second line I think is a hangover from MacPorts and you probably don't need it.

The third line ensures that Perl can find external libraries installed by Homebrew - I have seen different configurations posted but this one has always worked for me.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found