I have used perlbrew to install a new version of perl and all works well. I can install most modules from CPAN without a problem. However, I don't know how to install external libraries - e.g. libgd - in a way that my new perl can find them. Up to this I was using MacPorts for this purpose but it installs the libraries in /opt/local/ and compiles them against the version of perl found there. Any help would be most appreciated.
Update: Thanks to taint and syphilis, and a simple question from anony monk, I have it working now. I can continue to install external libraries using MacPorts and adding the following line to my bash profile
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Then, when installing modules I invoke cpan with my perlbrew perl (this was my lightbulb moment believe it or not)
sudo /Users/user/perl5/perlbrew/perls/perl-5.14.1/bin/perl5.14.1 -MCPA
+N -e shell
and all is hunky dory, modules get installed in my perlbrew path and can use the libraries installed in my MacPorts path.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.