This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
guide:compiling_r [2011/12/07 15:29] hamish created |
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 / | + | 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 / |
| - | Also note that for this guide, all binary and libraries are installed home directory, | + | If you dont have GCC installed |
| export PATH=/ | export PATH=/ | ||
| export LD_LIBRARY_PATH=/ | export LD_LIBRARY_PATH=/ | ||
| Line 10: | Line 10: | ||
| $ gcc --version | $ gcc --version | ||
| gcc (GCC) 4.3.4 | gcc (GCC) 4.3.4 | ||
| + | | ||
| + | ===== Download R Source ===== | ||
| + | | ||
| + | $ cd ~/scratch | ||
| + | $ wget http:// | ||
| + | $ tar -xf R-2.14.0.tar.gz | ||
| + | $ cd R-2.14.0/ | ||
| + | | ||
| + | ===== Configure ===== | ||
| + | |||
| + | For a bare-bones installation | ||
| + | $ mkdir BUILD | ||
| + | $ cd BUILD | ||
| + | $ ../ | ||
| + | | ||
| + | ===== Build / Make ===== | ||
| + | |||
| + | $ make | ||
| + | | ||
| + | if the process is interrupted, | ||
| + | |||
| + | ===== 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 / | ||