[Top][All Lists]

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

Re: [igraph] install w/anaconda?

From: David Robinson
Subject: Re: [igraph] install w/anaconda?
Date: Fri, 30 Aug 2013 16:54:01 -0600

On Fri, Aug 30, 2013 at 2:20 PM, Tamás Nepusz <address@hidden> wrote:
>> I apologize for the installation question, but I've been moving from 
>> platform to platform to keep customers happy. Getting Python (and packages) 
>> loaded on the various Windows platforms drove me to the edge of insanity. 
>> I'm back on a Mac and I thought things were going to be simpler. The 
>> particulars are: Python 2.7.5 (via anaconda), OS X 10.7.5 (Lion).  (Using 
>> the usual package installation route, I ran into scipy install problems no 
>> finding gfortran so I just went with Anaconda. )
> Completely unrelated but now that you mentioned gfortran: I installed it from 
> Homebrew (http://brew.sh) and I've been using it ever since without problems 
> -- I even compiled SciPy with it on my Mac.

I've also done the same thing on my Mac desktop and everything worked
fine.  It's possible that on this particular laptop that I've gotten
portions of various installations scattered around.

>> On the off-chance it will help, here is the output from running make on the 
>> C-library:
>> rover:graph-0.6.5 drobin$ make
>> …………… snip ….
>> grep: /usr/lib/libiconv.la: No such file or directory
>> sed: /usr/lib/libiconv.la: No such file or directory
>> libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive
> Hmmmm... this is almost the very last linking step so you are almost there. 
> But the fact that the compiler looks for libiconv.la is weird to say the 
> least.
> igraph surely depends on libiconv, but only indirectly. igraph requires 
> libxml2 to be able to parse XML files (in order to load graphs stored in 
> GraphML format), and it is libxml2 itself that requires libiconv. When igraph 
> is linked dynamically (into a .dylib), it does *not* require libiconv because 
> the OS linker will resolve the libiconv dependency when libigraph loads 
> libxml2. Are you trying to compile igraph statically by any chance?

You are giving too much credit. Just trying to do a vanilla install.

> Also, since libxml2 is required only for reading GraphML files, can you try 
> recompiling the C core with "./configure --disable-graphml" just to see where 
> that leads?

Everything went fine.  I wan't able to use pip or brew, but I just
downloaded the *.tar.gz file and did the usual things:.

% cd Dow*/python-igraph-0.6.5
% python setup.py build
% python setup.py install

A very quick check suggests success.  Life is much better.

What have I given up? I use *.gml format files almost exclusively.
I'm pretty sure that those are different than GraphML format?

Many thanks for the help.

reply via email to

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