Centos 6 上安装R-3.3.1

前端之家收集整理的这篇文章主要介绍了Centos 6 上安装R-3.3.1前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Centos 6 上安装R-3.3.1时报错: checkingwhetherzlibsupportsuffices...configure:error:zliblibraryandheadersarerequired

tarxvzfzlib-1.2.8.tar.gz
mvzlib-1.2.8zlib-1.2.8-raw
cdzlib-1.2.8-raw
./configure--prefix=/ifswh1/BC_PS/huangliangbo/zlib-1.2.8
make
makeinstall
cd..
rm-rzlib-1.2.8.tar.gzzlib-1.2.8-raw


tarxzvfbzip2-1.0.6.tar.gz
mvbzip2-1.0.6bzip2-1.0.6-raw
cdbzip2-1.0.6-raw
#修改Makefile,将第24行的CFLAGS=-Wall-Winline-O2-g$(BIGFILES)改为CFLAGS=-fPIC-Wall-Winline-O2-g$(BIGFILES)
make-fMakefile-libbz2_so
makeclean
make
make-ninstallPREFIX=/ifswh1/BC_PS/huangliangbo/bzip2-1.0.6
makeinstallPREFIX=/ifswh1/BC_PS/huangliangbo/bzip2-1.0.6
cd..
rm-rbzip2-1.0.6-rawbzip2-1.0.6.tar.gz


tarxzvfxz-5.2.2.tar.gz
mvxz-5.2.2xz-5.2.2-raw
cdxz-5.2.2-raw
./configure--prefix=/ifswh1/BC_PS/huangliangbo/xz-5.2.2
make-j3
makeinstall
cd..
rm-rxz-5.2.2-rawxz-5.2.2.tar.gz


tarxzvfpcre-8.38.tar.gz
mvpcre-8.38pcre-8.38-raw
cdpcre-8.38-raw
./configure--enable-utf8--prefix=/ifswh1/BC_PS/huangliangbo/pcre-8.38
make-j3
makeinstall
cd..
rm-rpcre-8.38-rawpcre-8.38.tar.gz


tarxzvfcurl-7.47.1.tar.gz
mvcurl-7.47.1curl-7.47.1-raw
cdcurl-7.47.1-raw
./configure--prefix=/ifswh1/BC_PS/huangliangbo/curl-7.47.1
make-j3
makeinstall
cd..
rm-rcurl-7.47.1-rawcurl-7.47.1.tar.gz


exportPATH=/ifswh1/BC_PS/huangliangbo/bzip2-1.0.6/bin:$PATH
exportPATH=/ifswh1/BC_PS/huangliangbo/xz-5.2.2/bin:$PATH
exportPATH=/ifswh1/BC_PS/huangliangbo/pcre-8.38/bin:$PATH
exportPATH=/ifswh1/BC_PS/huangliangbo/curl-7.47.1/bin:$PATH

exportLD_LIBRARY_PATH=/ifswh1/BC_PS/huangliangbo/bzip2-1.0.6/lib:$LD_LIBRARY_PATH
exportLD_LIBRARY_PATH=/ifswh1/BC_PS/huangliangbo/xz-5.2.2/lib:$LD_LIBRARY_PATH
exportLD_LIBRARY_PATH=/ifswh1/BC_PS/huangliangbo/zlib-1.2.8/lib:$LD_LIBRARY_PATH
exportLD_LIBRARY_PATH=/ifswh1/BC_PS/huangliangbo/pcre-8.38/lib:$LD_LIBRARY_PATH
exportLD_LIBRARY_PATH=/ifswh1/BC_PS/huangliangbo/curl-7.47.1/lib:$LD_LIBRARY_PATH

exportCFLAGS="-I/ifswh1/BC_PS/huangliangbo/zlib-1.2.8/include-I/ifswh1/BC_PS/huangliangbo/bzip2-1.0.6/include-I/ifswh1/BC_PS/huangliangbo/xz-5.2.2/include-I/ifswh1/BC_PS/huangliangbo/pcre-8.38/include-I/ifswh1/BC_PS/huangliangbo/curl-7.47.1/include"

exportLDFLAGS="-L/ifswh1/BC_PS/huangliangbo/zlib-1.2.8/lib-L/ifswh1/BC_PS/huangliangbo/bzip2-1.0.6/lib-L/ifswh1/BC_PS/huangliangbo/xz-5.2.2/lib-L/ifswh1/BC_PS/huangliangbo/pcre-8.38/lib-L/ifswh1/BC_PS/huangliangbo/curl-7.47.1/lib"

cd./R-3.3.1
./configure--prefix=/ifswh1/BC_PS/huangliangbo/R-3.3.1--with-cairo--with-jpeglib--with-readline--with-tcltk--with-blas--enable-BLAS-shlib--with-lapack--enable-R-profiling--enable-R-shlib--enable-memory-profiling

make
make install
makepdf(生成packages的pdf帮助文档,若无linux无图形界面,则不需要进行此步骤)

echo 'export PATH= /ifswh1/BC_PS/huangliangbo/R-3.3.1 /bin :$PATH' >> ~/.bashrc
source ~/.bashrc

安装bioconductor:
install.packages("BiocInstaller",repos=" http://bioconductor.org/packages/3.3/bioc")

猜你在找的CentOS相关文章