R-3.3.1 Source Installation

Source: Internet
Author: User

1. Yum Install Readline-devel

2. Yum Install Libxt-devel

3. Tar zxvf r-3.3.1.tar.gz

CD R-3.3.1

./configure--prefix=/opt/r-3.3.1--enable-r-shlib

Error:

Checking for zlib.h ... yes

Checking if zlib version >= 1.2.5 ... No

Checking whether zlib support suffices ... configure:error:zlib library and headers are required # #缺少zlib或者zlib版本过低

4, installation Zlib

Tar xvf zlib-1.2.8.tar.gz

Tar xvf zlib-1.2.8.tar.gz

CD zlib-1.2.8

./configure--prefix=/opt/zlib-1.2.8

Make && make install

5, cd/root/r-3.3.1

./configure--prefix=/opt/r-3.3.1--enable-r-shlib ldflags= "-l/opt/zlib-1.2.8/lib" CPPFLAGS= "-I/opt/zlib-1.2.8/ Include

Error:

Checking for zlib.h ... yes

Checking if zlib version >= 1.2.5 ... Yes

Checking whether zlib support suffices ... yes

Checking mmap support for zlib ... yes

Checking for bz2_bzlibversion in-lbz2 ... no

Checking whether bzip2 support suffices ... configure:error:bzip2 library and headers are required # #zlib版本已经符合要求, missing bZIP 2

6, installation bzip2

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

7./configure--prefix=/opt/r-3.3.1--enable-r-shlib ldflags= "-l/opt/zlib-1.2.8/lib-l/opt/bzip2-1.0.6/lib" Cppflags= "-i/opt/zlib-1.2.8/include-i/opt/bzip2-1.0.6/include"

Error:

Checking if bzip2 version >= 1.0.6 ... Yes

Checking whether bzip2 support suffices ... no

Checking for Lzma_version_number In-llzma ... no # #bzip2版本符合要求, but Lzma (XZ package) is missing

8. Installing XZ

Tar zxvf xz-5.2.2.tar.gz

cd/root/xz-5.2.2

./configure--prefix=/opt/xz-5.2.2

Make-j3

Make install

9./configure--prefix=/opt/r-3.3.1--enable-r-shlib ldflags= "-l/opt/zlib-1.2.8/lib-l/opt/bzip2-1.0.6/lib-l/opt/ Xz-5.2.2/lib "cppflags="-i/opt/zlib-1.2.8/include-i/opt/bzip2-1.0.6/include-i/opt/xz-5.2.2/include "

Error:

Checking whether bzip2 support suffices ... no

Checking for Lzma_version_number In-llzma ... yes

Checking lzma.h usability ... yes

Checking LZMA.H presence ... yes

Checking for lzma.h ... yes

Checking if Lzma version >= 5.0.3 ... Yes

Checking for Pcre_fullinfo in-lpcre ... no

Checking whether PCRE support suffices ... configure:error:pcre >= 8.10 Library and headers are required # #xz版本符合要求, p RCE version is too low or missing

10, installation Pcre

Tar zxvf pcre-8.39.tar.gz

cd/root/pcre-8.39

./configure--prefix=/opt/pcre-8.39

Make-j3 && make Install

11./configure--prefix=/opt/r-3.3.1--enable-r-shlib 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 "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 "

Error:

Checking for pcre.h ... yes

Checking pcre/pcre.h usability ... no

Checking pcre/pcre.h presence ... no

Checking for pcre/pcre.h ... no

Checking if PCRE version >= 8.10, < 10.0 and have UTF-8 support ... no

Checking whether PCRE support suffices ... configure:error:pcre >= 8.10 Library and headers are required # #PCRE需要安装- -enable-utf8

12. Reinstall Pcre

rm-rf/opt/pcre-8.39

cd/root/pcre-8.39

./configure--prefix=/opt/pcre-8.39--enable-utf8

Make-j3 && make Install

13./configure--prefix=/opt/r-3.3.1--enable-r-shlib 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 "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/"

Error:

Checking pcre/pcre.h usability ... no

Checking pcre/pcre.h presence ... no

Checking for pcre/pcre.h ... no

Checking if PCRE version >= 8.10, < 10.0 and have UTF-8 support ... yes

Checking if PCRE version >= 8.32 ... Yes

Checking whether PCRE support suffices ... yes

Checking for curl-config ... no

Checking curl/curl.h usability ... no

Checking curl/curl.h presence ... no

Checking for curl/curl.h ... no

Configure:error:libcurl >= 7.28.0 Library and headers is required with support for HTTPS # #需要安装curl

14. Install Curl

Tar zxvf curl-7.50.1.tar.gz

cd/root/curl-7.50.1

./configure--prefix=/opt/curl-7.50.1

Make && make install

15./configure--prefix=/opt/r-3.3.1--enable-r-shlib 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.50.1/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.50.1/include "

Error:

Checking curl/curl.h usability ... yes

Checking curl/curl.h presence ... yes

Checking for curl/curl.h ... yes

Checking if Libcurl is version 7 and >= 7.28.0 ... Yes

Checking if Libcurl supports HTTPS ... no

Configure:error:libcurl >= 7.28.0 Library and headers is required with support for HTTPS # #这是一个大坑需要在环境变量中加上curl的bin Path, if there is no error, it must have been caused by the system default installation of curl, in order to

Eliminate the potential risk, if there is an error, please do the following, the system default installation of Curl please retain, prevent other system program dependencies missing

16. Final operation

./configure--prefix=/opt/r-3.3.1--enable-r-shlib 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.50.1/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.50.1/include "

Vim/etc/profile

Export path= $PATH: $JAVA _home/bin:/opt/curl-7.50.1/bin # #在这一行加上 ":/opt/curl-7.50.1/bin"

Source/etc/profile # #让环境变量立马生效

Authentication

Echo $PATH

/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/java/ Jdk1.8.0_74/bin:/opt/curl-7.50.1/bin

Make

Make install

Vim/etc/profile # #添加R源环境变量

Export path= $PATH: $JAVA _home/bin:/opt/curl-7.50.1/bin:/opt/r-3.3.1/bin

Source/etc/profile # #让环境变量立马生效


This article is from the "Technology Learning" blog, so be sure to keep this source http://kuxingseng2016.blog.51cto.com/1374617/1846326

R-3.3.1 Source Installation

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.