[Top][All Lists]

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

Re: [igraph] igraph-help Digest, Vol 62, Issue 6

From: Tamás Nepusz
Subject: Re: [igraph] igraph-help Digest, Vol 62, Issue 6
Date: Sun, 11 Sep 2011 19:45:31 +0200


> I now installed the igraph-core using brew. I am now able to successfully 
> install igraph both via easy_install and source. However, I run into the 
> following error on import 
I guess this is because you are using the Enthought Python distribution and not 
the system Python. The Enthought Python distribution is a 32-bit distribution 
as you can see from the banner:

> Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec  3 2010, 15:41:32) 

However, the C core of igraph that you compiled from brew is a 64-bit version, 
which you can easily confirm with:

$ file /usr/local/lib/libigraph.dylib
/usr/local/lib/libigraph.dylib: Mach-O 64-bit dynamically linked shared library 

Unfortunately the brew recipe for igraph does not contain an option to force 
building a "fat" library (which would work on both 32-bit and 64-bit systems) 
-- I have added this to my TODO list. In the meanwhile, you should download the 
igraph source directly from http://igraph.sourceforge.net and compile it 
yourself, forcing it to be 32-bit as follows:

$ tar -xvvzf igraph-0.5.4.tar.gz
$ cd igraph-0.5.4
$ CFLAGS="-arch i386" CXXFLAGS="-arch i386" ./configure
$ make
$ make install

This should replace the brew-installed version with a 32-bit igraph.


reply via email to

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