linux 系统中 如何安装 R

1、下载linux 系统 R 软件 

   官网:https://mirrors.tuna.tsinghua.edu.cn/CRAN/

wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-4/R-4.0.2.tar.gz
tar -xzvf R-4.0.2.tar.gz
cd R-4.0.2/
./configure --enable-R-shlib=yes --with-tcltk --prefix=/usr/local/R

报错如下:

2、百度,下载安装 pcre2-10.35

 

https://sourceforge.net/projects/pcre/files/pcre2/10.35/pcre2-10.35.tar.gz
tar -xzvf pcre2-10.35.tar.gz
cd pcre2-10.35/
./configure --prefix=/usr/local/pcre2
make
make install

 没发现异常。

3、再次编译R

./configure --enable-R-shlib=yes --with-tcltk --prefix=/usr/local/R

仍然报错

4、再次百度 

  

猜你喜欢

转载自www.cnblogs.com/liujiaxin2018/p/13198096.html