簡體   English   中英

無法在R中安裝rPython軟件包

[英]Can't install rPython package in R

我正在使用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’

似乎在RHEL / CentOS等上的Python的默認安裝未“共享啟用”,即,它不包括libpython * .so。 只是libpython *。一個靜態庫。 這會阻止某些Python應用程序正常運行。 在不同地方(例如, 在此處此處 )有說明,指示如何在CentOS和相關Linux版本上將Python安裝為共享庫。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM