RHEL 6.6公司
我安装了mpfr 3.16并更新了ld.conf,但是即使显式地设置了库和include,我仍然无法让r安装包。

install.packages('Rmpfr', type = "source", configure.args=c('--with-mpfr-include=/usr/local/include','--with-mpfr-lib=/usr/local/lib'))

它似乎已编译,但无法加载库
错误:dyn.load(file,dllpath=dllpath,…)中“rmpfr”的包或命名空间加载失败:
无法加载共享对象'/opt/shiny server/r/x86_64-redhat-linux-gnu-library/3.4/rmpfr/libs/rmpfr.so':
/opt/shiny server/r/x86_64-redhat-linux-gnu-library/3.4/r mpfr/libs/rmpfr.so:未定义符号:mpfr_digamma
错误:加载失败
对下一步该怎么做有什么建议吗?

最佳答案

在centos6.9中,我在mpfr4.0.1中安装/usr/local/lib
系统mpfr位于/usr/lib64中。
如果我将/usr/lib64/libmpfr.so重命名为/usr/lib64/libmpfr.so.bk
我可以安装rmpfr:

R CMD INSTALL Rmpfr.tar.gz

然后您可以将/usr/lib64/libmpfr.so.bk重新命名为/usr/lib64/libmpfr.so

关于r - Rmpfr将无法安装,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47292771/

10-11 06:31