首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在R中安装rPython包

无法在R中安装rPython包
EN

Stack Overflow用户
提问于 2015-10-22 04:30:04
回答 1查看 808关注 0票数 0

我正在使用CentOS 6.4,并且正在尝试安装R包'rPython‘。它失败,并显示以下消息。有人知道怎么解决这个问题吗?谢谢!

代码语言:javascript
复制
/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’
EN

回答 1

Stack Overflow用户

发布于 2015-11-28 19:38:45

在RHEL / CentOS等平台上,Python的默认安装似乎不是“启用共享”,也就是说,它不包含libpython*.so。只有libpython*.a静态库。这会阻止某些Python应用程序正常运行。在不同的位置(例如,herehere)有说明,指示如何在CentOS和相关的Linux版本上将Python安装为共享库。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33268639

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档