操作系统环境:Debian9(stretch)
这次安装R,系统缺的库比较多。
安装之前,可以先安装以下图片库
aptitude install libpng-dev
aptitude install libtiff-dev
1. 执行:./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