R Installation Deployment

Source: Internet
Author: User

1. Yum install-y readline-devel gcc* libxt-devel openssl*
2, download the compilation installation zlib
wget http://ncu.dl.sourceforge.net/project/libpng/zlib/1.2.8/zlib-1.2.8.tar.gz
TAR-ZXVF zlib-1.2.8.tar.gz
CD zlib-1.2.8
./configure--prefix=/opt/zlib-1.2.8
Make && make install
In the/etc/profile file, add:
library_path=/usr/local/zlib/lib/: $LIBRARY _path
Export Library_path
ld_library_path=/usr/local/zlib/lib/: $LD _library_path
Export Ld_library_path
c_include_path=/usr/local/zlib/include/: $C _include_path
Export C_include_path
3, download the compilation installation bzip2
wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
TAR-ZXVF bzip2-1.0.6.tar.gz
CD bzip2-1.0.6
Make-f Makefile-libbz2_so
Make clean
Make
Make install prefix=/opt/bzip2-1.0.6
Added in the/etc/profile file: Export path=/opt/bzip2-1.0.6/bin: $PATH
4. Download and install XZ
wget http://tukaani.org/xz/xz-5.2.2.tar.gz
Tar xzvf xz-5.2.2.tar.gz
CD xz-5.2.2
./configure--prefix=/opt/xz-5.2.2
Make-j3 & make Install
5, download the compilation installation Pcre
wget http://fossies.org/linux/misc/pcre-8.39.tar.gz
TAR-ZXVF pcre-8.39.tar.gz
CD pcre-8.39
./configure--prefix=/opt/pcre-8.39--enable-utf8
Make & make instal
6. Download the Build and install Curl
wget https://curl.haxx.se/download/curl-7.51.0.tar.gz
Tar zxvf curl-7.51.0.tar.gz
CD curl-7.51.0
./configure--prefix=/opt/curl-7.51.0
Make && make install

Export Path=/opt/curl-7.51.0/bin: $PATH
Export Path=/opt/r/bin: $PATH
Source/etc/profile

7. Update link Lib library and path path
Echo/opt/xz-5.2.2/lib >>/etc/ld.so.conf
Echo/opt/pcre-8.39/lib >>/etc/ld.so.conf
echo "Export ld_library_path=/opt/curl-7.51.0/lib: $LD _library_path" >>/ROOT/.BASHRC
Source/root/.bashrc

8. Install R Program
wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-3/R-3.3.2.tar.gz
TAR-ZXVF r-3.3.1.tar.gz
CD R-3.3.1
./configure--enable-r-shlib--prefix=/opt/r--with-x=no ldflags= "-l/opt/zlib-1.2.8/lib-l/opt/bzip2-1.0.6/lib-l/ Opt/xz-5.2.2/lib-l/opt/pcre-8.39/lib-l/opt/curl-7.51.0/lib "cppflags="-i/opt/zlib-1.2.8/include-i/opt/ Bzip2-1.0.6/include-i/opt/xz-5.2.2/include-i/opt/pcre-8.39/include-i/opt/curl-7.51.0/include "
Ldconfig
Mv/opt/bzip2-1.0.6/lib/libbz2.a/tmp
Make
Mv/tmp/libbz2.a/opt/bzip2-1.0.6/lib
Make install

This article is from the "jiazheming" blog, make sure to keep this source http://8888866666.blog.51cto.com/6988153/1881310

R Installation Deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.