Re: change a path
[email protected] (Edward Moy)
| Newsgroups | perl.macosx |
|---|---|
| Message-ID | <[email protected]> |
On Feb 20, 2009, at 9:14 AM, Sherm Pendley wrote: > On Fri, Feb 20, 2009 at 11:51 AM, Dan Neville <[email protected]> > 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. ***No***, don't modify Config_heavy.pl (or any other file in /System) manually. Use the ARCHFLAGS environment variable instead. See: http://developer.apple.com/releasenotes/OpenSource/PerlExtensionsRelNotes/ -------------------------------------------------------------------------- Edward Moy Apple Inc. [email protected]