Linux环境下安装R
tar -xvf R-4.0.3.tar.gz
cd R-4.0.3/
./configure --prefix /work/users/zhaoxl/software/
报错:configure: error: libcurl >= 7.28.0 library and headers are required with support for https
./configure --with-readline=no --with-x=no --prefix /work/users/zhaoxl/software
接着报错:configure: error: libcurl >= 7.28.0 library and headers are required with support for https
安装libcurl-devel,解决libcurl 问题,成功编译
yum install libcurl-devel
./configure --prefix /work/users/zhaoxl/software/
make
make install
另外一种更简单的方法,使用conda直接安装指定版本R,推荐使用conda安装。
conda install -c conda-forge r-base==4.1.3