如何使用 --enable-R-shlib 配置 R-3.0.1 [英] How to configure R-3.0.1 with --enable-R-shlib

查看:44
本文介绍了如何使用 --enable-R-shlib 配置 R-3.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 --enable-R-shlib 安装 R,以便我可以使用该版本运行 rstudio

I am trying to install R with --enable-R-shlib, so that I can run rstudio with that version,

cd /mnt/data2tb/disk/soft/R-3.0.1
./configure --with-x=yes --enable-R-shlib

但我收到此错误:

/usr/bin/ld: ../appl/dchdc.o: relocation R_X86_64_32 against `.rodata'
can not be used when making a shared object; recompile with -fPIC
../appl/dchdc.o: could not read symbols: Bad value collect2: ld
returned 1 exit status make[3]: *** [libR.so] Error 1 make[3]: Leaving
directory `/mnt/data2tb/disk/soft/R-3.0.1/src/main' make[2]: *** [R]
Error 2 make[2]: Leaving directory
/mnt/data2tb/disk/soft/R-3.0.1/src/main make[1]: *** [R] Error 1
make[1]: Leaving directory `/mnt/data2tb/disk/soft/R-3.0.1/src' make:
*** [R] Error 1

有什么建议吗?提前致谢:)

Any suggestions? Thanks in advance :)

推荐答案

除了 Martin Morgan 在评论中建议的更改目录外,请注意您可以这样做

Other than changing directory as suggested by Martin Morgan in the comment, note that you can do

make clean

清除先前编译中的二进制文件.这将使您无需将文件复制到另一个文件夹.

to clean the binaries from the previous compilation. This will save you from needing to copy the files to another folder.

这篇关于如何使用 --enable-R-shlib 配置 R-3.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆