Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Saturday September 26, 2009
07:11 AM

Why I'm Switching to 5.10

[ #39676 ]

Like many Perl programmers, I've kept at my "comfortable" level of Perl for a long time. This is partly just not wanting to upgrade, but it's also partly because I want to ensure that code I release to the CPAN works for versions of Perl that most people have installed (which is why I don't worry about 5.005 support that much). However, there are many reasons to switch to 5.10.

But my real reason? Snow Leopard. When I upgraded to Snow Leopard, my system somehow got horribly corrupted. I managed to rebuild my 5.10 installation, but 5.8 wouldn't work because Compress::Raw::Zlib wouldn't work. Once I installed that manually, I found that CPAN wouldn't work because it requires Mac::Files, part of the Mac::Carbon distribution.

Mac::Carbon doesn't install on Snow Leopard with 64-bit Perl. In fact, in going through Pudge's blog entries on this topic, none of the various techniques I tried worked. Lots of google hits related to this, but I found no solutions. I finally gave up and switched to 5.10. All because of one critical module. Maybe this isn't a bad thing?

(Of course, it was real fun to discover that Mac Ports added a new PATH= line to my .bash_profile, putting /opt/local/bin before $HOME/bin.)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Hi,

    the main reason that makes Mac::Carbon not compatible with perl5.10 in Snow Leopard is that perl is compiled as mixed 64bit/32bit and Carbon is a 32bit only API.

    If you compile perl5.10 32 bit only, Mac::Carbon should install just fine.

    --
    life is short
  • Re: (Of course, it was real fun to discover that Mac Ports added a new PATH= line to my .bash_profile, putting /opt/local/bin before $HOME/bin.) Thanks so much for posting this. I searched .profile, .bashrc and couldn't figure out why /opt/local/bin was taking precedence until I found this post.
    • I had opened a ticket for this with macports [macports.org], but they closed it as they can't reproduce it. Until someone can document clear steps needed to reproduce this, it won't get fixed :/ (which is annoying, but reasonable).