操作系統(tǒng)環(huán)境:Debian9(stretch)
這次安裝R,系統(tǒng)缺的庫比較多梅垄。
安裝之前,可以先安裝以下圖片庫
aptitude install libpng-dev
aptitude install libtiff-dev
1. 執(zhí)行:./configure --prefix=/Path/to/R3.5.0 --enable-R-shlib
??????? 1) 問題:configure: error: No F77 compiler found
???????????? 解決:aptitude install gfortran
???????? 2)問題: configure: error: --with-readline=yes (default) and headers/libs are not available
???????????? 解決: aptitude install libreadline-dev
????????? 3)問題:configure: error: --with-x=yes (default) and X11 headers/libs are not available
????????????? 解決:aptitude install libxt-dev
?????????? 4)問題:checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required
??????????????? 解決:aptitude install libbz2-dev
??????????? 5)問題:checking whether PCRE support suffices... configure: error: pcre >= 8.20 library and headers are required
??????????????? 解決:wget https://nchc.dl.sourceforge.net/project/pcre/pcre/8.42/pcre-8.42.tar.gz
???????????????????????????? tar zxvf pcre-8.42.tar.gz
????????????????????????????? cd pcre-8.42
?????????????????????????????? ./configure --enable-utf8
?????????????????????????????? make
??????????????????????????????? make install
???????????????????? 6)問題:configure: error: libcurl >= 7.22.0 library and headers are required with support for https
?????????????????????????? 解決:wget https://curl.haxx.se/download/curl-7.64.1.tar.gz
??????????????????????????????????????? tar zxvf curl-7.64.1.tar.gz
???????????????????????????????????????? cd curl-7.64.1
???????????????????????????????????????? aptitude install libssl-dev (https基于ssl)
???????????????????????????????????????? ./configure --with-ssl
???????????????????????????????????????? make
????????????????????????????????????????? make install
?????? 2. make -j 8 (多線程編譯)
?????? 3. make install