Linux下最新版R源碼安裝完全攻略__Linux

來源:互聯網
上載者:User

    在Linux下,最新版R源碼安裝會遇到多個錯誤異常警告,很多時候大家會選擇忽略並完成安裝,但在使用中,在某些問題上會出現意想不到的問題。現整理完整安裝攻略如下:

step0:下載R安裝包 R-3.2.2.tar.gz
step1:
[root@localhost Downloads]# tar xvf R-3.2.2.tar.gz  #解壓
step2:
[root@localhost R-3.2.2]# cd R-3.2.2 
[root@localhost R-3.2.2]# ./configure --enable-R-shlib
configure: error: No F77 compiler found  #錯誤描述
[root@localhost R-3.2.2]# yum install gcc-gfortran  #解決方案
Complete!
step3:
[root@localhost R-3.2.2]# ./configure --enable-R-shlib
configure: error: in `/home/yuanmin/Downloads/R-3.2.2':    #錯誤描述
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
[root@localhost R-3.2.2]# yum install gcc-c++ glibc-headers  #解決方案
Complete!
step4:
[root@localhost R-3.2.2]# ./configure --enable-R-shlib
configure: error: --with-readline=yes (default) and headers/libs are not available  #錯誤描述
[root@localhost R-3.2.2]# yum install readline-devel   #解決方案
Complete!
step5:
[root@localhost R-3.2.2]# ./configure --enable-R-shlib
configure: error: --with-x=yes (default) and X11 headers/libs are not available #錯誤描述
[root@localhost R-3.2.2]# yum install libXt-devel   #解決方案
Complete!
step6:
[root@localhost R-3.2.2]# make
*** Cannot find any Java interpreter              #錯誤描述
*** Please make sure 'java' is on your PATH or set JAVA_HOME correspondingly
make[1]: [stamp-java] Error 1 (ignored)
make[1]: Leaving directory `/home/yuanmin/Downloads/R-3.2.2'
[root@localhost R-3.2.2]# yum search java #尋找相關外掛程式
[root@localhost R-3.2.2]# yum install java_cup.x86_64  #解決方案
Complete!
step7:
[root@localhost R-3.2.2]# make
[root@localhost R-3.2.2]# make install
--------------------------
安裝完成。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.