- ubantu基础依赖包的安装: apt-get install vim sudo apt-get install texlive sudo apt-get install texlive-fonts-extra apt install openjdk-8-jre-headless sudo apt-get install openjdk-8-jdk sudo apt-get install gfortran sudo apt-get install build-essential sudo apt-get install readline-devel apt-get install libreadline6-dev
apt install zlib1g zlib1g-dev
apt install liblzma-dev
apt-get install libcurl4-openssl-dev
sudo apt-get install texinfo
apt-get install texlive
sudo apt-get install libxt-dev
2. ubantu 需要下载的依赖包的安装配置
wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
tar xzvf bzip2-1.0.6.tar.gz
cd bzip2-1.0.6
make -f Makefile-libbz2_so
make clean
make –n install
make install
如果以上步骤失败:
vim Makefile
修改Makefile文件 中的CC=cc 为
CC=gcc -fPIC
make clean <------------保守建议,还是clean一下 make make install
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
tar zxvf pcre-8.41.tar.gz
cd pcre-8.41
./configure --enable-utf8
make -j3&& make install
wget http://www.zlib.net/ zlib-1.2.11.tar.gz
tar zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
vim Makefile.ini
修改Makefile文件
把gcc的编译参数加上 -fPIC
如果你之前编译过了,一定要用make clean清掉,否则还是徒劳。。
最后make && make install
3.R语言的下载安装
wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/R-3.4.1.tar.gz
./configure --enable-R-shlib
make && make install
到此在ubantu16.0.4下的R语言安装全部完成。你可以尽情遨游其中了。