igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Problem installing python-igraph on Mac OS X Lion related t


From: Tamás Nepusz
Subject: Re: [igraph] Problem installing python-igraph on Mac OS X Lion related to ARPACK
Date: Sat, 7 Jan 2012 13:45:18 +0100

Hi,

Do you have igraph_arpack.h, igraph_error.h and similar header files in 
/opt/local/include/igraph?

-- 
T.

On 7 Jan 2012, at 13:43, Jonathan Donges wrote:

> Hi Tamas,
> 
> That helped to reduce a lot of the errors. But still there are some left 
> related to arpack again:
> 
>>> sudo python setup.py install
> 
> Include path: /opt/local/include/igraph
> Library path: /opt/local/lib
> running install
> running bdist_egg
> running egg_info
> writing python_igraph.egg-info/PKG-INFO
> writing top-level names to python_igraph.egg-info/top_level.txt
> writing dependency_links to python_igraph.egg-info/dependency_links.txt
> reading manifest file 'python_igraph.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'python_igraph.egg-info/SOURCES.txt'
> installing library code to build/bdist.macosx-10.6-intel/egg
> running install_lib
> running build_py
> running build_ext
> building 'igraph._igraph' extension
> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g 
> -O2 -DNDEBUG -g -O3 -I/opt/local/include/igraph -I../../build/include 
> -I../../include -I/usr/local/include -I/usr/include 
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
> src/arpackobject.c -o build/temp.macosx-10.6-intel-2.7/src/arpackobject.o
> In file included from src/arpackobject.c:24:
> src/arpackobject.h:28:27: error: igraph_arpack.h: No such file or directory
> In file included from src/arpackobject.c:26:
> src/error.h:28:26: error: igraph_error.h: No such file or directory
> In file included from src/arpackobject.c:24:
> src/arpackobject.h:28:27: error: igraph_arpack.h: No such file or directory
> In file included from src/arpackobject.c:26:
> src/error.h:28:26: error: igraph_error.h: No such file or directory
> lipo: can't figure out the architecture type of: /var/tmp//cclTdhxd.out
> error: command 'gcc-4.2' failed with exit status 1
> 
> What else can be done?
> 
> Cheers,
> Jonathan
> 
> 
> Am 06.01.2012 um 15:14 schrieb Tamás Nepusz:
> 
>> Hi,
>> 
>> I think I know what the problem is. igraph 0.6 currently puts its include 
>> files in an igraph/ subfolder within the include dir (I guess 
>> /usr/local/include), but setup.cfg still refers to /usr/local/include. Try 
>> using /usr/local/include/igraph instead. The library path can stay as is.
>> 
>> Cheers,
>> Tamas
>> 
>> On 6 Jan 2012, at 15:06, Jonathan Donges wrote:
>> 
>>> Hi,
>>> 
>>> I removed all older versions of the igraph C libraries and made sure that 
>>> the libs are installed in /usr/local/lib. The headers are installed in 
>>> /usr/local/include. I made sure that these directories are referenced both 
>>> in the setup.cfg and setup.py files as recommended:
>>> 
>>> sudo python setup.py install
>>> Using default include and library paths for compilation
>>> If the compilation fails, please edit the LIBIGRAPH_FALLBACK_*
>>> variables in setup.py or include_dirs and library_dirs in 
>>> setup.cfg to point to the correct directories and libraries
>>> where the C core of igraph is installed
>>> ()
>>> Include path: /usr/include /usr/local/include
>>> Library path: /usr/lib /usr/local/lib
>>> 
>>> I still get the same errors as before when trying to install python-igraph 
>>> on Lion:
>>> 
>>> …
>>> building 'igraph._igraph' extension
>>> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 
>>> -g -O2 -DNDEBUG -g -O3 -I/usr/include -I/usr/local/include 
>>> -I../../build/include -I../../include -I/usr/local/include -I/usr/include 
>>> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
>>> src/arpackobject.c -o build/temp.macosx-10.6-intel-2.7/src/arpackobject.o
>>> In file included from src/arpackobject.c:24:
>>> src/arpackobject.h:28:27: error: igraph_arpack.h: No such file or directory
>>> In file included from src/arpackobject.h:29,
>>>               from src/arpackobject.c:24:
>>> src/graphobject.h:28:20: error: igraph.h: No such file or directory
>>> …
>>> 
>>> Do you have an idea what I could do next?
>>> 
>>> Thanks,
>>> Jonathan
>>> 
>>> 
>>> Am 05.01.2012 um 22:53 schrieb Tamás Nepusz:
>>> 
>>>>> The igraph headers reside in /usr/local/include on my system. Still, I 
>>>>> get the same error. Maybe the version is not correct (I had an earlier 
>>>>> version of graph installed before upgrading to Lion from Leopard)? How 
>>>>> can I check the version of the headers?
>>>> Check out /usr/local/include/igraph_version.h, it should contain the 
>>>> version number. If you don't have this file then the headers are from 
>>>> 0.5.x since this header has been added only in the 0.6 branch.
>>>> 
>>>> Cheers,
>>>> T.
>>>> _______________________________________________
>>>> igraph-help mailing list
>>>> address@hidden
>>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>> 
>>> 
>>> _______________________________________________
>>> igraph-help mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>> 
>> 
>> 
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
> 
> 
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
> 




reply via email to

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