in reply to Re: Mac::Carbon et.c on Mac OS X 10.8
in thread Mac::Carbon et.c on Mac OS X 10.8
Thanks, that's helpful.
Before posting here I had already tried rebuilding Mac::Glue (as suggested in the first response to my original question), but without any luck. I was planning on next building my own perl, but then I began to suspect that the problem was more fundamental and could not be fixed by tweaking the build parameters.
Perl (v5.12.4) claims to be bi-architectural:
The module I want to use is 32-bit i386:[kw|~] file /usr/bin/perl /usr/bin/perl: Mach-O universal binary with 2 architectures /usr/bin/perl (for architecture i386): Mach-O executable i386 /usr/bin/perl (for architecture x86_64): Mach-O 64-bit executable x +86_64
But things fail anyway:[kw|~] lipo -info /System/Library/Perl/Extras/5.12/darwin-thread-multi +-2level/auto/MacPerl/MacPerl.bundle Non-fat file: /System/Library/Perl/Extras/5.12/darwin-thread-multi-2le +vel/auto/MacPerl/MacPerl.bundle is architecture: i386
I'm guessing that I'm out of luck, since the OS is 64-bit and Mac::Glue will only build as 32-bit (since it depends on the Carbon API). But I'm a novice on these architecture compatibility issues, so if someone wants to authoritatively confirm that I'm out of luck I would appreciate it.[kw|~] perl -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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Mac::Carbon et.c on Mac OS X 10.8
by luis.roca (Deacon) on Feb 23, 2013 at 04:13 UTC |