-->

安装将R interpeter和R作为乌德同一树共享库(Installing the R inter

2019-08-02 07:17发布

我有点困惑如何安装R(经编)作为共享库。

该指令在这里 ( Rpy2 )说我应该做到以下几点:

  # <go to the R source directory>
  make distclean
  ./configure --enable-R-shlib
  make
  make install

但第makemake distclean )将消除同一个目录树(如内容在任何以前安装的R bin文件夹)。

如果我想使用什么相同的安装对于R解释和共享库? 例如,假设我想用解释来安装R包,然后安装的共享库调用从Rpy2 R(以及那些包)。

否则,我怎么能安装R包使用过Rpy2?

Answer 1:

./configure --enable-R-shlib

会告诉打造的r共享库除了什么是正常构建(可执行文件,文档,等...)

make install

将安装R(默认是/usr/local )。 这是你要找到你 - [R可执行文件。 调用make distclean只会影响到构建目录,而不是安装R.



文章来源: Installing the R interpeter and R as a shared library uder the same tree