Perl under MacOS X

Kieren Diment diment at
Thu Jun 2 09:06:36 BST 2011

On 02/06/2011, at 5:55 PM, Randy J. Ray wrote:

> I find myself the unexpected caretaker of a MacBook Pro, handed off to me when someone at $JOB left recently. It's shiny. And very eye-candy-ish. But I am now wishing I'd paid more attention to recent discussions of OSX-related stuff. I seem to recall some issues with Xcode 4 and compiled CPAN modules? And some references to something called perlbrew? Some of this I've learned a bit about with the help of The Google, but if anyone can offer me some tips they'd be most appreciated (and duly rewarded with drink the next time I'm in London). The problem here isn't lack of information, rather the problem is over-abundance of it. And much of what I find on Google is years old, and the problems I'm vaguely remembering seemed more recent than that...

Short answer (this was for solaris where the situation is even worse than OS X but the same applies):

1.  Obtain perl, e.g. current stable (as of the 12th of Jan 2011) (yes there's a newer one around now):

 $ curl -O
 $ gunzip -c perl-5.12.2.tar.gz | tar xvf -
 $ cd perl 5.12.2
 $ sh Configure -des -Dprefix=~/perl-5.12 # install into ~/perl-5.12 add "-Duserelocatableinc" if you want to be able to move the ~/perl-5.12 dir around
 $ make
 $ make test
 $ make install

2.  Configure PATH and cpan config, by putting the following in ~/.bashrc:

 export PATH=~/perl-5.12/bin:$PATH


$ source ~/.bashrc

Make CPAN slightly nicer to deal with.

 $ cpan Bundle::CPAN
 $ cpan App::cpanminus

Perlbrew makes this easier apparently.  

> Randy
> -- 
> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> Randy J. Ray      Sunnyvale, CA   rjray at
> Silicon Valley Scale Modelers:

More information about the mailing list