Hi Tamas, I was able to work around this issue by installing the C library before installing python-igraph. I think pip would install the C core with libxml2 support, whereas libxml2 is optional when the C library is installed separately.
Regards, Ka Ming ________________________________________ From: Tamás Nepusz [[email protected]] Sent: May 7, 2014 2:37 PM To: Help for igraph users; Ka Ming Nip Subject: Re: [igraph] Compilation error 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 [email protected] Reply: Help for igraph users [email protected] Date: 7 May 2014 at 23:33:54 To: [email protected] [email protected] 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
