From: Paul C. <pca...@gm...> - 2010-09-29 16:45:41
|
On Wed, Sep 29, 2010 at 12:16 PM, Alexander Hansen <ale...@gm...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 9/29/10 11:12 AM, Paul Cantalupo wrote: >> Hello, >> >> First, I've successfully installed Bio::Graphics before under Cygwin >> on Windows. Now I'm trying to do it on Snow Leopard. Fink does not >> have Bio::Graphics so I got it from CPAN. >> >> I ran the tests and they were successful: >> >> Titan:~/src/Bio-Graphics-2.13 foo$ ./Build test >> t/BioGraphics.t .. ok >> t/Wiggle.t ....... ok >> All tests successful. >> Files=2, Tests=63, 1 wallclock secs ( 0.04 usr 0.00 sys + 1.00 cusr >> 0.08 csys = 1.12 CPU) >> Result: PASS >> >> >> But when installing, I am getting a "wrong architecture" error which >> seems to be a problem with my Fink installation: >> >> Titan:~/src/Bio-Graphics-2.13 foo$ sudo ./Build install >> Password: >> Can't load '/sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/IO/IO.bundle' >> for module IO: dlopen(/sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/IO/IO.bundle, >> 1): no suitable image found. Did find: >> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/IO/IO.bundle: >> mach-o, but wrong architecture at >> /System/Library/Perl/5.10.0/darwin-thread-multi-2level/XSLoader.pm >> line 67. >> at /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO.pm line 11 >> Compilation failed in require at >> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Handle.pm line 266. >> BEGIN failed--compilation aborted at >> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Handle.pm line 266. >> Compilation failed in require at >> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Seekable.pm line >> 101. >> BEGIN failed--compilation aborted at >> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Seekable.pm line >> 101. >> Compilation failed in require at >> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/File.pm line 133. >> BEGIN failed--compilation aborted at >> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/File.pm line 133. >> Compilation failed in require at >> /sw/lib/perl5/5.10.0/Module/Build/Base.pm line 20. >> BEGIN failed--compilation aborted at >> /sw/lib/perl5/5.10.0/Module/Build/Base.pm line 20. >> Compilation failed in require at /sw/lib/perl5/5.10.0/Module/Build.pm line 14. >> BEGIN failed--compilation aborted at >> /sw/lib/perl5/5.10.0/Module/Build.pm line 14. >> Compilation failed in require at ./Build line 45. >> BEGIN failed--compilation aborted at ./Build line 45. >> >> >> >> Any ideas of what to try? I'm at a loss as to what to do. >> >> >> Thank you, >> >> Paul >> > > By default, the perl5.10 on OS X ties to build universal binaries, and > Fink doesn't do that. > > We explicitly force an architecture in our perlmodules. E.g.: > > $ fink dumpinfo -fcompilescript io-pm5100 > Information about 9695 packages read in 1 seconds. > compilescript: > ARCHFLAGS="" /usr/bin/arch -i386 perl5.10.0 Makefile.PL > PERL="/usr/bin/arch -i386 perl5.10.0" PREFIX=/sw32 > INSTALLPRIVLIB=/sw32/lib/perl5/5.10.0 > INSTALLARCHLIB=/sw32/lib/perl5/5.10.0/darwin-thread-multi-2level > INSTALLSITELIB=/sw32/lib/perl5/5.10.0 > INSTALLSITEARCH=/sw32/lib/perl5/5.10.0/darwin-thread-multi-2level > INSTALLMAN1DIR=/sw32/share/man/man1 INSTALLMAN3DIR=/sw32/share/man/man3 > INSTALLSITEMAN1DIR=/sw32/share/man/man1 > INSTALLSITEMAN3DIR=/sw32/share/man/man3 INSTALLBIN=/sw32/bin > INSTALLSITEBIN=/sw32/bin INSTALLSCRIPT=/sw32/bin > make > > To link against Fink's perlmodules you'd need to do something similar. > Not sure how to do that. > It might be easier just to use all of the magic that Fink does by > default and come up with a Fink package description file. :-) > Where do I start learning about this? > (Also, do you really need to install your CPAN packages globally, rather > than just in your home directory? No. How do I do this? > For security reasons 'sudo' strips > the environment for Perl stuff, including Fink's PERL5LIB settings. We > have to go to some pains to deal with that, since Fink does have to use > 'sudo'.) Good to know. Thank you, Paul |