0

When I tried to install lxml using

pip install --upgrade lxml

..I am getting following error

/opt/centos/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-    
linux/4.7.2/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation     
R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making   
a shared object; recompile with -fPIC

How to resolve this?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
GGK
  • 11
  • 1

1 Answers1

0

I could able to resolve it with solution here

How to ignore local python when building python from source

Python 2.7.6: 
wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared               LDFLAGS="-Wl,-rpath /usr/local/lib"
make && make altinstall
Community
  • 1
  • 1
GGK
  • 11
  • 1