R-3.1.1 编译安装2

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



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值