开发者

How can I find out which Perl version was available on older Mac OS X versions?

I want to create Perl scripts that run on older OS X machines as well as on current versions. Is there a list or a resource where I can find out which Perl versions were distributed with older Mac OS X Versions (10.0 to 10.6)开发者_高级运维?


I'm sure there is some online resource to find this, probably at Apple Development Connection

However I have three machines to hand which show me that /usr/bin/perl versions are:

  • 5.8.6 on 10.4 (Tiger)
  • 5.8.8 on 10.5 (Leopard)
  • 5.10.0 on 10.6 (Snow Leopard)

In all cases these are thread enabled.

Starting from Snow Leopard, multiple versions of perl are supported under the hood and it also comes with Perl 5.8.9 which you can switch to like so:

defaults write com.apple.versioner.perl Version 5.8.9

Also note that 5.10.0 on Snow Leopard is 64-bit. You can switch to 32-bit by using following:

defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes

/I3az/


Update:

A full list of Perl source code that Apple has compiled with Mac OS X can be found on their Perl opensource page.

Working out what the packaging version numbers mean and how they refer to each version of Mac OS X may take some effort. However each package does show which Perl was compiled with the options, patches & extra modules Apple applied to it.

See Perl and Mac OS X versions for my best stab at working all this out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜