User Tools

Site Tools


guide:compiling_r

This is an old revision of the document!


Installing R 2.14 from Source

This guide is written fun the Sun Tsessbe Cluster, login node. Its recommended that you make you use of temporary or scratch directory to do all the compilation in (i.e. ~/scratch or /tmp/$USER), as to save disk space in your home directory.

Also note that for this guide, all binary and libraries are installed home directory, i.e prefix=$HOME. Add the following lines to the end of your .bashrc file

export PATH=/opt/gridware/gcc-4.3/bin:$PATH
export LD_LIBRARY_PATH=/opt/gridware/gcc-4.3/lib64/:/opt/gridware/gcc-4.3/lib/:$HOME/lib
export F77=gfortran

Logout and log in again,

$ gcc --version
  gcc (GCC) 4.3.4
  

Download R Source

$ cd ~/scratch
$ wget http://cran.r-project.org/src/base/R-2/R-2.14.0.tar.gz
$ tar -xf R-2.14.0.tar.gz 
$ cd R-2.14.0/

Configure

/app/dokuwiki/data/attic/guide/compiling_r.1323264769.txt.gz · Last modified: 2021/12/09 16:42 (external edit)