链接共享库错误

链接共享库错误

make -j4我正在尝试安装 root 软件,但当我在终端中输入时出现以下错误:

Linking CXX shared library ../../lib/libPyROOT.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(myreadline.o): relocation R_X86_64_32 against `.rodata.str1.1' 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
make[2]: *** [lib/libPyROOT.so] Error 1
make[1]: *** [bindings/pyroot/CMakeFiles/PyROOT.dir/all] Error 2
make: *** [all] Error 2

尽管我尝试了很长时间,但我还是无法理解。有人能帮帮我吗?我安装了 Ubuntu 14.04.3 LTS 和 Python 2.7.8。

谢谢。

相关内容