emoy
Fri, 28 Aug 2009 01:45:27 -0700
On Aug 27, 2009, at 11:15 PM, Gavin Brock wrote:
Anyone else seeing issues with Snow Leopard /usr/bin/perl modules on 64bit hardware?This does not appear to be an issue if the /usr/bin/perl5.8.9 perl is used instead (yup - there are two perls installed on snowy!)/usr/bin/perl -MMacPerl -e 1Can't load '/System/Library/Perl/Extras/5.10.0/darwin-thread- multi-2level/auto/MacPerl/MacPerl.bundle'for module MacPerl:/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/auto/ MacPerl/MacPerl.bundle: no appropriate 64-bit architecture (see "man perl" for running in 32-bitmode) at/System/Library/Perl/5.10.0/darwin-thread-multi-2level/ DynaLoader.pm line 207.at /usr/local/bin/csshx line 237 Compilation failed in require at /usr/local/bin/csshx line 237. BEGIN failed--compilation aborted at /usr/local/bin/csshx line 237.Sadly I'm a poor core-duo (32bit) user so I can't reproduce this - I'm just receiving bug reports...Any insights? Gavin
Because a lot of Carbon is not available in 64-bit, and because MacPerl and other modules are based on Carbon, they can't be built 64- bit. Since perl 5.10.0 is 64-bit by default, those modules can't be loaded.
A 32-bit only machine will work fine, just as using the techniques mentioned in "man perl" for running in 32-bit mode. However, since the world is moving to 64-bit, and most of SnowLeopard is already 64- bit, moving off of modules that depend on non-64-bit software like Carbon is the long term solution.
Ed