On Fri, Feb 20, 2009 at 11:51 AM, Dan Neville <dnevi...@nytimes.com> wrote:
Hi, > Does anyone know how to fix this: > > I am trying to install a couple of modules PerlMagick for one. The error I > keep getting on all three of them is: > > lipo: can't open input file: > /var/folders/LH/LHR2wOKBHPif1NtQky7mbZorFD2/-Tmp-//ccrI61Hv.out (No such > file or directory) > make: *** [Magick.o] Error 1 The default Perl is configured to build XS modules as universal binaries, but a library you're linking against (probably ImageMagick) is not built as a UB. This error is lipo complaining that one of the two binary components it's trying to assemble into a universal binary is missing, because it failed to build. You should have gotten an earlier compiler error telling you where the original failure was - the above is the last error. It's *far* more useful to trace errors from first to last, since later errors can be the extended result of earlier ones. You could edit /System/Library/Perl/5.8.8/darwin-thread-multi-2level/Config.pm to remove the "-arch i386" and "-arch ppc" directives from the compiler and linker flags. Your modules will only be built for the native the architecture of the system you're using if you do that, but if they're only going to be used on that system, or on other systems just like it, that won't matter. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net