[英]Can't install rPython package in R
I'm using CentOS 6.4 and I'm trying to install the R package 'rPython'. 我正在使用CentOS 6.4,并且正在尝试安装R软件包“ rPython”。 It failed with following messages.
它失败,并显示以下消息。 Anybody knows how to fix this?
有人知道如何解决这个问题吗? Thanks!
谢谢!
/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’
It seems that the default installation of Python on RHEL / CentOS, etc. is not "shared enabled", ie, it does not include libpython*.so. 似乎在RHEL / CentOS等上的Python的默认安装未“共享启用”,即,它不包括libpython * .so。 Just the libpython*.a static library.
只是libpython *。一个静态库。 This prevents some Python applications to run properly.
这会阻止某些Python应用程序正常运行。 There are instructions in different places, (eg, here or here ) indicating how to install Python as a shared library on CentOS and related Linux flavours.
在不同地方(例如, 在此处或此处 )有说明,指示如何在CentOS和相关Linux版本上将Python安装为共享库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.