I\'m trying to install the dlib
Python library. On some systems (macOS, stock Ubuntu 14.04) pip install dlib
works fine, but in the Ubuntu 14.x tha
As an FYI, my particular case was resolved by renaming '/usr/local/lib/libpython2.7.a' to '/usr/local/lib/libpython2.7.a.moved'. According to 'yum whatprovides /usr/local/lib/libpython2.7.a' output, this was not installed as a part of any packages installed via yum. Moving this out of the way in this case, solved my issue.
Here was my original error message:
/usr/bin/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
/usr/local/lib/libpython2.7.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status
Given that none of my installed packages accounted for the .a lib, moving it aside was an option for me.