您的位置:首页 > 其它

R-3.1.1 编译安装2

2015-09-29 23:13 316 查看
1:下载解压

[jifeng@feng03 r]$ wget http://mirror.bjtu.edu.cn/cran/src/base/R-3/R-3.1.1.tar.gz --2015-09-29 21:53:37--  http://mirror.bjtu.edu.cn/cran/src/base/R-3/R-3.1.1.tar.gz Resolving mirror.bjtu.edu.cn... 60.247.46.223, 2001:da8:205::58
Connecting to mirror.bjtu.edu.cn|60.247.46.223|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28606569 (27M) [application/octet-stream]
Saving to: “R-3.1.1.tar.gz”

100%[=======================================================================================>] 28,606,569   365K/s   in 2m 17s

2015-09-29 21:55:55 (203 KB/s) - “R-3.1.1.tar.gz” saved [28606569/28606569]

[jifeng@feng03 r]$ tar -zxf R-3.1.1.tar.gz


2:编译安装

./configure --enable-R-shlib

make && make install

[root@feng03 R-3.1.1]$ ./configure  --enable-R-shlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
loading site script './config.site'
loading build-specific script './config.site'
checking for pwd... /bin/pwd
checking whether builddir is srcdir... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for gawk... gawk
checking whether ln -s works... yes
checking for bison... no
checking for byacc... no


R is now configured for x86_64-unknown-linux-gnu

Source directory:          .
Installation directory:    /usr/local

C compiler:                gcc -std=gnu99  -g -O2
Fortran 77 compiler:       gfortran  -g -O2

C++ compiler:              g++  -g -O2
C++ 11 compiler:           g++  -std=c++0x -g -O2
Fortran 90/95 compiler:    gfortran -g -O2
Obj-C compiler:

Interfaces supported:      X11, tcltk
External libraries:        readline
Additional capabilities:   NLS
Options enabled:           shared R library, shared BLAS, R profiling

Recommended packages:      yes

configure: WARNING: you cannot build info or HTML versions of the R manuals
configure: WARNING: neither inconsolata.sty nor zi4.sty found: PDF vignettes and package manuals will not be rendered optimally


安装

[root@feng03 R-3.1.1]# make && make install
make[1]: Entering directory `/home/jifeng/r/R-3.1.1/m4'
make[1]: Nothing to be done for `R'.
make[1]: Leaving directory `/home/jifeng/r/R-3.1.1/m4'
make[1]: Entering directory `/home/jifeng/r/R-3.1.1/tools'
make[1]: Nothing to be done for `R'.
make[1]: Leaving directory `/home/jifeng/r/R-3.1.1/tools'
make[1]: Entering directory `/home/jifeng/r/R-3.1.1/doc'
make[2]: Entering directory `/home/jifeng/r/R-3.1.1/doc/html'
make[2]: Leaving directory `/home/jifeng/r/R-3.1.1/doc/html'
make[2]: Entering directory `/home/jifeng/r/R-3.1.1/doc/manual'
make[2]: Nothing to be done for `R'.


make[2]: Entering directory `/home/jifeng/r/R-3.1.1/src/library'
mkdir -p -- /usr/local/lib64/R/library
installing packages ...
building HTML index ...
make[2]: Leaving directory `/home/jifeng/r/R-3.1.1/src/library'
make[1]: Leaving directory `/home/jifeng/r/R-3.1.1/src'
make[1]: Entering directory `/home/jifeng/r/R-3.1.1/tests'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/jifeng/r/R-3.1.1/tests'


进入R
[root@feng03 R-3.1.1]# R

R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> q()
Save workspace image? [y/n/c]: n
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: