参考http://shdf611.lofter.com/post/1cd0a1d0_cb8e162,盛赞!

https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Essential-programs-and-libraries-1

redhat7.2


离线安装readline的开发包

rpm -i readline-devel-6.2-9.el7.x86_64.rpm --nodeps


zlib,bzip2,xz,pcre,curl,R源码包放在同一个目录下

(zlib1.2.7和zlib1.2.11都不行,zlib1.2.8可以,没有深入查找原因)

cd zlib-1.2.8/

./configure && make && make install


cd ../bzip2-1.0.6/

make -f Makefile-libbz2_so 

make && make install


cd ../xz-5.2.3/

./configure && make && make install


cd ../pcre-8.40/

./configure --enable-utf --enable-unicode-properties --enable-jit

make && make install


cd ../curl-7.52.1/

./configure && make && make install


cd ../R-3.3.2/

./configure --without-x

make && make install


#which R Rscript

/usr/local/bin/R

/usr/local/bin/Rscript