[Top][All Lists]

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

Re: [igraph] python-igraph OSX Lion install errors

From: Bedartha Goswami
Subject: Re: [igraph] python-igraph OSX Lion install errors
Date: Fri, 04 Nov 2011 13:44:21 +0100

Sorry I forgot to mention that I also tried: export MACOSX_DEPLOYMENT_TARGET=10.7 as you suggested but still it remains the same (more or less): Bedarthas-MacBook-Air:python-igraph-0.5.4 bedartha$ sudo python2.6 setup.py build
Include path: /usr/local/include
Library path: /usr/local/lib
running build
running build_py
running build_ext
building 'igraph.core' extension
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/usr/local/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/arpackobject.c -o build/temp.macosx-10.3-fat-2.6/src/arpackobject.o
unable to execute gcc-4.0: Exec format error
error: command 'gcc-4.0' failed with exit status 1
Best regards,
Bedartha Tamas Nepusz writes:
Are you using the system Python on Mac OS X or have you installed Python
from a third-party source (such as macpython.org)? I suspect that you
installed Python from macpython.org since the setup script seems to use
gcc-4.0 by default instead of llvm-gcc-4.2.
This is not a problem per se, but you have to make sure that the C core is
compiled with the same gcc for the same architecture as the Python
interface. So, for instance, if you use gcc-4.0 for building the Python
interface, then you'll need to compile the C core with gcc-4.0 as well. If
you use "-arch ppc -arch i386" for building the Python interface in order to
obtain a PPC/i386 "fat" library, then you have to compile the C core for
PPC/i386 as well using "-arch ppc -arch i386". If you just simply download
the C core and compile it on Mac OS X Lion, it will use llvm-gcc-4.2 and
compile it for the x86_64 only, so the obtained libigraph.dylib will be
incompatible with the one that the Python interface tries to compile.
Even after the above, I get the following error: /usr/include/AvailabilityMacros.h:109:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.
You can probably get around this with export MACOSX_DEPLOYMENT_TARGET=10.7
The reason is that the i386 architecture was not supported before Mac OS X
10.4, and your compiler seems to want to produce code for Mac OS X 10.3.
igraph-help mailing list

Attachment: install-python-igraph-ext-OSXLion_3
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]