[Top][All Lists]

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

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

From: Tamas Nepusz
Subject: Re: [igraph] python-igraph OSX Lion install errors
Date: Fri, 04 Nov 2011 13:16:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


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


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.


reply via email to

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