yum install texinfo-tex
yum install libjpeg-turbo
下载新版本的zlib http://www.zlib.net/
./configure --prefix=/home/aaa/zlib1.2.6
make
make install
vi /etc/ld.so.conf.d/zlib.conf
加入如下内容后保存退出
/home/aaa/zlib1.2.6/lib
也就是添加安装目录的文件路径,库文件。ldconfig 运行之后就会加载安装的库文件了。
下载bzip2 http://www.bzip.org/
make
make install PREFIX=/home/aaa/bzip2106
下载lzma https://tukaani.org/xz/ 5.2.2
./configure
make
make install
http://www.pcre.org/ 8.41
./configure --prefix= --enable-utf8
make
make install
https://curl.haxx.se/libcurl/ 7.58
./configure
make
make install
.下载R语言 https://www.r-project.org/
tar -zxvf R-3.3.0.tar.gz
cd R-3.3.0
./configure LDFLAGS="-L/home/aaa/zlib1.2.6/lib -L/home/aaa/bzip2106/lib -L/home/aaa/xtlzma5.2.2/lib -L/home/aaa/pcre841/lib -L/home/aaa/curl758/lib" CPPFLAGS="-I/home/aaa/zlib1.2.6/lib -I/home/aaa/bzip2106/include -I/home/aaa/xtlzma5.2.2/include -I/home/aaa/pcre841/include -I/home/aaa/curl758/include"
make
make install
参考:
http://blog.csdn.net/yanggd1987/article/details/46561827
http://blog.csdn.net/wangchenxi1100/article/details/78910758