【发布时间】:2013-12-13 07:23:43
【问题描述】:
我正在尝试使用--enable-R-shlib 安装R,以便我可以使用该版本运行rstudio,
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
有什么建议吗?在此先感谢:)
【问题讨论】:
-
确保您没有在之前编译时没有
--enable-R-shlib标志的目录中进行编译; R 应该注意正确的编译器标志。 -
亲爱的@MartinMorgan。你的建议对我有用!我刚刚创建了另一个目录。非常感谢:)
-
@justhalf 很难,因为这个问题和 R 版本早于另一个,但另一个得到了更多的关注,答案有些不同......仍然对同一个问题有多个问题并不理想。所以关闭这个