Last active
September 14, 2015 16:23
-
-
Save cheuerde/04a19c535e75ae4b324e to your computer and use it in GitHub Desktop.
Compile R-devel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Claas Heuer, September 2015 | |
| # set default installation directory: | |
| INSTDIR=$HOME/opt | |
| # place to store the source packages | |
| SOURCES=$HOME/sourcebuilds | |
| ################### | |
| ### Compiling R ### | |
| ################### | |
| cd $SOURCES | |
| # downlad tarball | |
| wget https://stat.ethz.ch/R/daily/R-devel.tar.gz | |
| # extract tarball | |
| tar -xf R-devel.tar.gz | |
| # change to source directory | |
| cd R-devel | |
| # configure with local prefix and shared-blas | |
| ./configure --prefix=${INSTDIR}/R-devel --with-cairo | |
| # compile R as shared library | |
| #./configure --prefix=${INSTDIR}/R_openblas --enable-BLAS-shlib --enable-R-shlib | |
| # compile | |
| make -j4 | |
| # install | |
| make install | |
| # create a symbolic link for R-devel | |
| ln -s $INSTDIR/R-devel/bin/R /usr/bin/R-devel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment