我正在使用CentOS 6.4,并且正在尝试安装R包'rPython‘。它失败,并显示以下消息。有人知道怎么解决这个问题吗?谢谢!
/usr/bin/ld: /usr/local/lib/python2.7/config/libpython2.7.a(dictobject.o): relocation R_X86_64_32S against `PyDict_Type' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.7/config/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [rPython.so] Error 1
ERROR: compilation failed for package ‘rPython’
* removing ‘/usr/lib64/R/library/rPython’发布于 2015-11-28 19:38:45
在RHEL / CentOS等平台上,Python的默认安装似乎不是“启用共享”,也就是说,它不包含libpython*.so。只有libpython*.a静态库。这会阻止某些Python应用程序正常运行。在不同的位置(例如,here或here)有说明,指示如何在CentOS和相关的Linux版本上将Python安装为共享库。
https://stackoverflow.com/questions/33268639
复制相似问题