相关疑难解决方法(0)

使用--enable-R-shlib安装R 3.5.0

我正在尝试使用Linux Mint下的标志--enable-R-shlib从源代码安装R 3.5.0。在没有标志的情况下进行配置和安装可以正常工作,但是RStudio要求设置标志。但是,运行时

./configure --enable-R-shlib
make
Run Code Online (Sandbox Code Playgroud)

我得到错误

/usr/bin/ld: CommandLineArgs.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
CommandLineArgs.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:177: recipe for target 'libR.so' failed
make[3]: *** [libR.so] Error 1
make[3]: Leaving directory '/home/hps/Downloads/R-3.5.0/src/main'
Makefile:135: recipe for target 'R' failed
make[2]: *** [R] Error 2
make[2]: Leaving directory '/home/hps/Downloads/R-3.5.0/src/main'
Makefile:28: recipe for target 'R' failed
make[1]: *** [R] Error 1
make[1]: …
Run Code Online (Sandbox Code Playgroud)

ubuntu gcc makefile r linux-mint

5
推荐指数
2
解决办法
2470
查看次数

标签 统计

gcc ×1

linux-mint ×1

makefile ×1

r ×1

ubuntu ×1