Linux環(huán)境下安裝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