User Tools

Site Tools


guide:compiling_r

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guide:compiling_r [2011/12/07 15:32]
hamish
guide:compiling_r [2021/12/09 16:42] (current)
Line 1: Line 1:
 ====== Installing R 2.14 from Source ======  ====== 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.+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. Note that for this guide, all binary and libraries are installed home directory, i.e prefix=$HOME.
  
-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+If you dont have GCC installed in your home directory, Add the following lines to the end of your .bashrc file
   export PATH=/opt/gridware/gcc-4.3/bin:$PATH   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 LD_LIBRARY_PATH=/opt/gridware/gcc-4.3/lib64/:/opt/gridware/gcc-4.3/lib/:$HOME/lib
Line 19: Line 19:
      
 ===== Configure ===== ===== Configure =====
 +
 +For a bare-bones installation
 +  $ mkdir BUILD
 +  $ cd BUILD
 +  $ ../configure --prefix=$HOME --without-system-zlib --without-system-xz --without-cairo --without-libpng --without-jpeglib --disable-openmp --disable-largefile --disable-nls
 +  
 +===== Build / Make =====
 +
 +  $ make
 +  
 +if the process is interrupted, try make again to so if the error persists.
 +
 +===== Check =====
 +
 +  $make check
 +  
 +===== Install =====
 +
 +  $ make install  
 +  
 +restore you .bashrc file
 +
 +For you jobs to run on the worker nodes, you may need to copy some shared libraries to your lib directory
 +  $ cd $HOME/lib
 +  $ cp /usr/local/lib/libiconv.so.2 ./
/app/dokuwiki/data/attic/guide/compiling_r.1323264769.txt.gz · Last modified: 2021/12/09 16:42 (external edit)