On Aug 20, 2010, at 7:15 PM, [email protected] wrote:
> Message: 3 > Date: Tue, 10 Aug 2010 21:28:18 -0400 > From: Dave Nunn <[email protected]> > Subject: [OpenBabel-scripting] openbabel perl binding problems > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Hello -- > > While trying to install the perl bindings for openbabel, I run into the > following problem: > > $ make > Skip blib/lib/Chemistry/OpenBabel.pm (unchanged) > g++ -c -I../../include -arch x86_64 -arch i386 -arch ppc -g -pipe > -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os > -DVERSION=\"1.3.0\" -DXS_VERSION=\"1.3.0\" > "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" > openbabel_perl.cpp > Running Mkbootstrap for Chemistry::OpenBabel () > chmod 644 OpenBabel.bs > rm -f blib/arch/auto/Chemistry/OpenBabel/OpenBabel.bundle > g++ -shared -arch x86_64 -arch i386 -arch ppc -bundle -undefined > dynamic_lookup -L/usr/local/lib openbabel_perl.o -L../../src/.libs > -lopenbabel -lz -o blib/arch/auto/Chemistry/OpenBabel/OpenBabel.bundle \ > \ > > i686-apple-darwin10-g++-4.2.1: -bundle not allowed with -dynamiclib > i686-apple-darwin10-g++-4.2.1: -bundle not allowed with -dynamiclib > powerpc-apple-darwin10-g++-4.2.1: -bundle not allowed with -dynamiclib > lipo: can't figure out the architecture type of: /var/tmp//cchi5SMV.out > make: *** [blib/arch/auto/Chemistry/OpenBabel/OpenBabel.bundle] Error 1 > > > I get the same results after trying the suggested > (export MACOSX_DEPLOYMENT_TARGET='10.6'); > Compiling openbabel itself went smoothly, and the installations of both > openbabel and the perl bindings worked fine on a Mac OSX 10.5 machine today. > > Any suggestions? Any help greatly appreciated. > > -Dave Nunn Hi Dave, I only just saw this (I have the mailing list in digest mode) but ran into the same problem myself while making the homebrew formula from 2.2.3. This is my solution: After running "perl Makefile.PL" to create the Makefile you have to edit it. Search and remove all instances of "-bundle" "-arch ppc" and "-arch i386". Then run make. You may be able to leave the additional -arch flags, or use i386 instead of x86_64 if you built a 32-bit version of openbabel. ...or use homebrew and try out my formula (see earlier email). Richard ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ OpenBabel-scripting mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-scripting
