igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Compilation error


From: Tamás Nepusz
Subject: Re: [igraph] Compilation error
Date: Wed, 7 May 2014 23:37:37 +0200

Hello,

It looks like the static version of libxml2 on your system was not compiled 
with the -fPIC option enabled, so it cannot be linked to a dynamic library. Try 
temporarily moving /usr/lib64/libxml2.a to somewhere (say, /tmp) to ensure that 
the setup script of the Python interface does not find it when needed -- the 
installer will then fall back to /usr/lib64/libxml2.so (i.e. the dynamic 
version of the libxml2 library) and it should work just fine. I will try to 
find a workaround for this for the next release.

--  
T.

------------------------------------------------------
From: Ka Ming Nip address@hidden
Reply: Help for igraph users address@hidden
Date: 7 May 2014 at 23:33:54
To:address@hidden address@hidden
Subject:  [igraph] Compilation error

> Hello,
>  
> I am trying to install python-igraph with pip, but I got the following error:
>  
> ...
> gcc -pthread -shared build/temp.linux-x86_64-2.7/src/edgeobject.o 
> build/temp.linux-x86_64-2.7/src/error.o  
> build/temp.linux-x86_64-2.7/src/attributes.o 
> build/temp.linux-x86_64-2.7/src/arpackobject.o  
> build/temp.linux-x86_64-2.7/src/vertexseqobject.o 
> build/temp.linux-x86_64-2.7/src/common.o  
> build/temp.linux-x86_64-2.7/src/indexing.o 
> build/temp.linux-x86_64-2.7/src/convert.o  
> build/temp.linux-x86_64-2.7/src/bfsiter.o 
> build/temp.linux-x86_64-2.7/src/filehandle.o  
> build/temp.linux-x86_64-2.7/src/igraphmodule.o 
> build/temp.linux-x86_64-2.7/src/vertexobject.o  
> build/temp.linux-x86_64-2.7/src/random.o 
> build/temp.linux-x86_64-2.7/src/edgeseqobject.o  
> build/temp.linux-x86_64-2.7/src/graphobject.o 
> build/temp.linux-x86_64-2.7/src/py2compat.o  
> build/temp.linux-x86_64-2.7/src/pyhelpers.o igraphcore/lib/libigraph.a 
> /usr/lib64/libxml2.a  
> /usr/lib64/libz.a /usr/lib64/libm.a -Ligraphcore/lib -L/usr/local/lib64 
> -L/usr/local/lib  
> -L/usr/lib64 -L/usr/lib -L/lib64 -L/lib -L../../build/src/.libs -L../../src
> /.libs -L/usr/local/lib -L/usr/lib -lstdc++ -o 
> build/lib.linux-x86_64-2.7/igraph/_igraph.so  
>  
> /usr/bin/ld: /usr/lib64/libxml2.a(entities.o): relocation R_X86_64_32 against 
>  
> `a local symbol' can not be used when making a shared object; recompile with 
> -fPIC
>  
> /usr/lib64/libxml2.a: could not read symbols: Bad value
>  
> collect2: ld returned 1 exit status
>  
> error: command 'gcc' failed with exit status 1
>  
>  
> Please let me know what I can do now.
>  
> Thanks,
> KaMing
> _______________________________________________
> 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]