kwalker has asked for the wisdom of the Perl Monks concerning the following question:
I just upgraded from Mac OS X 10.6 to 10.8. I find that the version of perl which ships with 10.8 has Mac::Glue, Mac::Carbon etc. preinstalled, but it doesn't seem to be functional due to what I suspect are 32/64-bit architecture issues:
[kw|~] perl5.12 -ce 'use Mac::Glue' Can't load '/System/Library/Perl/Extras/5.12/darwin-thread-multi-2leve +l/auto/MacPerl/MacPerl.bundle' for module MacPerl: dlopen(/System/Lib +rary/Perl/Extras/5.12/darwin-thread-multi-2level/auto/MacPerl/MacPerl +.bundle, 1): no suitable image found. Did find: /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/auto/M +acPerl/MacPerl.bundle: mach-o, but wrong architecture at /System/Libr +ary/Perl/5.12/darwin-thread-multi-2level/DynaLoader.pm line 204. at /System/Library/Perl/Extras/5.12/Mac/Glue/Common.pm line 21 Compilation failed in require at /System/Library/Perl/Extras/5.12/Mac/ +Glue/Common.pm line 21. BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.12/ +Mac/Glue/Common.pm line 21. Compilation failed in require at /System/Library/Perl/Extras/5.12/Mac/ +Glue.pm line 7. BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.12/ +Mac/Glue.pm line 7. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
I tried "export VERSIONER_PERL_PREFER_32_BIT=yes" but that didn't seem to make any difference. Is there any way to make Mac::Glue et al work with the built-in perl, or will I need to build my own perl? If the latter, what are the best compiler and linker flags to use?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mac::Carbon et.c on Mac OS X 10.8
by luis.roca (Deacon) on Feb 22, 2013 at 23:18 UTC | |
by kwalker (Acolyte) on Feb 23, 2013 at 02:07 UTC | |
by luis.roca (Deacon) on Feb 23, 2013 at 04:13 UTC | |
Re: Mac::Carbon et.c on Mac OS X 10.8
by kwalker (Acolyte) on Feb 24, 2013 at 00:11 UTC | |
Re: Mac::Carbon et.c on Mac OS X 10.8
by Anonymous Monk on Feb 22, 2013 at 19:55 UTC |
Back to
Seekers of Perl Wisdom