Linux软件安装

Python 软件安装

  1. numpy
   sudo apt-get install python-numpy
  1. matplotlib
   sudo apt-get install python-matplotlib
  1. matplotlib
   sudo apt-get install python-scipy

JDK安装

  1. 解压并归档文件
sudo tar -zxvf ~/下载/jdk-7u71-linux-x64.tar.gz -C /usr/java
  1. 设置环境变量
sudo vi /etc/profile
"append following content:"
export JAVA_HOME=/usr/java/jdk1.7.0_71
export JRE_HOME=/usr/java/jdk1.7.0_71/jre
export CLASSPATH.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
  1. 使profile生效
source /etc/profile
  1. 检查是否安装成功
java -version

安装R

  1. 下载
  2. 解压归档
tar -zxvf ~/下载/R-3.1.2.tar.gz -C ~/software/
  1. 安装
cd ~/software/R-3.1.2
./configure

错误: configure: error: No F77 compiler found
R语言需要fortran compiler,也就是说, 在上面尝试寻找了若干种Fortran 编译器未果之后,提示你没有安装任何一种可以使用的fortran 77 编译器。随便装个gfortran就行了。

sudo apt-get install gfortran
./configure

会产生错误:configure: error: con--with-readline=yes (default) and headers/libs are not available

./confgirue --with-readline=no

会出现错误:configure: error: --with-x=yes (default) and X11 headers/libs are no t available

./configure --with-x=no --with--readline=no

配置通过,但是会产生如下warning:
configure: WARNING: you cannot build DVI versions of the R manuals
configure: WARNING: you cannot build DVI versions of all the help pages
configure: WARNING: you cannot build info or HTML versions of the R manuals
configure: WARNING: you cannot build PDF versions of the R manuals
configure: WARNING: you cannot build PDF versions of all the help pages
这是缺少生成相应格式manuals的插件,如果有需要可以依次安装。

make
make install
  1. 配置环境变量
vi ~/.bash_profile
export PATH=~/software/R-3.1.2:$PATH
source ~/.bash_profile 
  1. 测试
R
posted @ 2015-01-24 14:07  翻墙搞科研  阅读(2007)  评论(0编辑  收藏  举报