Skip to content

Instantly share code, notes, and snippets.

@kantale
Created October 23, 2016 08:48
Show Gist options
  • Save kantale/77490c01d802a8b0f1b5a34733dd8c06 to your computer and use it in GitHub Desktop.
Save kantale/77490c01d802a8b0f1b5a34733dd8c06 to your computer and use it in GitHub Desktop.
Τίτλος

Με αυτόν τον τρόπο εγκαθιστούμε την R 3.3.1 από source σε Linux

configureDir=`pwd`/R_3_3_1

if [ ! -f $configureDir/bin/R ]; then

    sudo apt-get -y install gcc gfortran g++ 
    sudo apt-get -y install libreadline6 libreadline6-dev 
    sudo apt-get -y install unzip zlib1g-dev zlibc zlib1g libbz2-dev liblzma-dev 
    sudo apt-get -y install libpcre3 libpcre3-dev 
    sudo apt-get -y install libcurl4-gnutls-dev
    sudo apt-get -y install make default-jre default-jdk 
    sudo apt-get -y install texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texinfo

    wget https://cran.r-project.org/bin/linux/ubuntu/precise/r-base_3.3.1.orig.tar.gz
    tar zxvf r-base_3.3.1.orig.tar.gz
    mkdir R_3_3_1
    cd R-3.3.1
    ./configure --prefix=$configureDir -with-x=no 
    make 
    make install
    cd ..

    cp $configureDir/bin/* bin/

else
    echo "R 3.3.1 is already installed"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment