Re: [Gtk-osx-users] Can't load Expat.bundle, 1) no suitable image found



On Apr 7, 2011, at 4:33 PM, Peter Kelley wrote:

> I am running XCode 4.0.1


I think what's going on is that XCode4 removes ppc support for a bunch of things. Unfortunately, Perl isn't one of them but libexpat is, so when Perl tries to compile a module (in this case XML::Parser), it passes x86_64, i386, and ppc for architectures. There's no ppc image in libexpat, so the build fails.

If I'm right, the solution is to export ARCHFLAGS="-arch x86_64 -arch i386". You may also want to add 
$ENV{ARCHFLAGS} = "-arch x86_64 -arch i386" to your ~/.cpan/CPAN/MyConfig.pm (or ~/Library/Application Support/.cpan/CPAN/MyConfig.pm if you have File::HomeDir installed, though that's unusual for Mac users).

Regards,
John Ralls






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]