Question for Mac Users

CromeDome on 2009-07-07T13:04:52

For those of you using Macs, are you using Perl as it ships with OS X, the Perl MacPort, or are you compiling your own? If you could briefly explain why you use the one you do. I agonize over this every couple of months, and finally decided to sample a larger bit of the community this time around.

Thanks!


Shipped and compiled

masak on 2009-07-07T14:05:27

I use 5.8.8 as it ships, and have a 5.10.0 that I compiled myself. I've been too lazy to completely roll over to the latter so far.

Re:Shipped and compiled

cbrandtbuffalo on 2009-07-07T15:37:13

I do the same as the above. I like to have a version of 5.10 to work with and prefer not to mess with the delivered version of perl.

non-Mac

mpeters on 2009-07-07T15:47:05

I think the advice is similar to other non-Mac platforms that do package management. For Fedora I keep the default Fedora Perl installed but then compile and install my own. I even change the /usr/bin/perl symlink to point to mine so it makes things easier. But I leave everything else alone so it can continue to use the system perl.

Compiled in $HOME

revdiablo on 2009-07-07T16:06:15

I compile my own, with $HOME as the prefix. This puts everything in $HOME/bin, $HOME/lib, etc.

The biggest problem I've encountered is executing scripts directly uses their shebang, which is usually the system perl. I avoid the problem by running everything with 'perl' specified. Since $HOME/bin is in my PATH first, this executes my custom build.

The big win, in my opinion, is I never have to use sudo to rebuild, update, install cpan modules, or really anything.

Compile

andy.sh on 2009-07-07T16:51:05

I always compile perl on every machine I use. Just because I prefer to have similar perl everywhere. Thus my macbook runs 5.10 now.

Compiled

cjfields on 2009-07-07T18:45:15

I'm running 5.10 on my Macbook; I'll be running it (or the latest version) on pretty much anything from this point on.

I compile the latest stable

Phred on 2009-07-07T21:50:47

I'm running 5.8.9 compiled. Because you can't trust what Apple will do during an update.
Planning on moving to 5.10.1 when it is released, and will replace my 5.8.9 compiled instance with it.

Compiled.

mattk on 2009-07-08T09:12:35

Like many others, I prefer to leave the system perl alone. I also like the flattened libdir structure that Aristotle describes here:

PREFIX=$HOME/perl-5.10 ./Configure -des -Dprefix=$PREFIX -Dinc_version_list=none -Dprivlib=$PREFIX/lib -Darchlib=$PREFIX/archlib -Dsitearch=$PREFIX/archlib -Dsitelib=$PREFIX/lib