Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
public:install_lofar_centos6.5 [2017-01-04 15:41] – [3. Installation the LOFAR software] Frank Breitling | public:install_lofar_centos6.5 [2017-02-01 21:16] – Update for Python 2.7 Frank Breitling | ||
---|---|---|---|
Line 25: | Line 25: | ||
The cluster also provides a //module system// to load newer versions of the installed software. \\ | The cluster also provides a //module system// to load newer versions of the installed software. \\ | ||
- | We will activate it and replace the default version of gcc 4.4.7 with gcc 4.8.3 for C++11 support. | + | Its used below to replace the default version of gcc 4.4.7 with gcc 4.8.3 for C++11 support. |
=== 1.1 Paths === | === 1.1 Paths === | ||
- | This instruction will install all packages in $HOME/local/. \\ | + | The following changes are required: |
- | And for the installation of Pyrap (python-casacore) we need a Python path with write access. \\ | + | |
- | So I added the following lines to $HOME/ | + | * A more recent version of GCC with C++11 required by Casacore is activated through the module system. |
< | < | ||
- | source | + | File "/home/fkbreitl/local/lib64/python2.6/ |
- | module | + | from ._tables import Table |
+ | ImportError: | ||
+ | </ | ||
+ | * The packages will be installed in $HOME/ | ||
+ | * Pyrap (python-casacore) needs a writable Python path. \\ | ||
+ | |||
+ | This adds the following lines to $HOME/ | ||
+ | < | ||
+ | source / | ||
+ | module load gcc/ | ||
+ | export LD_LIBRARY_PATH=/ | ||
export PYTHONPATH=$HOME/ | export PYTHONPATH=$HOME/ | ||
- | export LD_LIBRARY_PATH=$HOME/ | ||
export PATH=$HOME/ | export PATH=$HOME/ | ||
</ | </ | ||
Line 61: | Line 70: | ||
- | === 1.3 Boost === | + | === 1.3 Python === |
+ | To use matplotlib 2 one also needs Python 2.7 or later. | ||
+ | |||
+ | < | ||
+ | V_PY=2.7.13 | ||
+ | cd ~/ | ||
+ | wget https:// | ||
+ | tar xf Python-$V_PY.tgz | ||
+ | cd Python-$V_PY | ||
+ | ./configure --prefix=$HOME/ | ||
+ | time make -j | ||
+ | make install | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | === 1.4 Boost === | ||
Also a newer version of [[http:// | Also a newer version of [[http:// | ||
Line 73: | Line 98: | ||
time ./b2 install --prefix=${HOME}/ | time ./b2 install --prefix=${HOME}/ | ||
</ | </ | ||
- | |||
Line 87: | Line 111: | ||
wget ftp:// | wget ftp:// | ||
tar xf packages/ | tar xf packages/ | ||
- | cd wcslib-5.15/ | + | cd wcslib-5.15 |
./configure --prefix=$HOME/ | ./configure --prefix=$HOME/ | ||
time make -j install | time make -j install | ||
Line 97: | Line 121: | ||
< | < | ||
- | V_FFTW=3.3.5 | + | V_FFTW=3.3.5 |
cd $HOME/ | cd $HOME/ | ||
wget http:// | wget http:// | ||
Line 136: | Line 160: | ||
[[https:// | [[https:// | ||
This is for example provided with [[http:// | This is for example provided with [[http:// | ||
- | Here we assume CASA is already installed and $HOME/ | + | Here we assume CASA is already installed and can be found in the $CASAPATH given below. For convenience this is a link to the CASA folder. |
- | We will specify this via -DDATA_DIR, otherwise we need a ~/.casarc file with the line: '' | + | Then the data is in $CASAPATH/data. \\ |
+ | We will specify this via -DDATA_DIR, otherwise we need a ~/.casarc file with the line: '' | ||
'' | '' | ||
Line 150: | Line 175: | ||
< | < | ||
+ | # 2.1, 2.2 | ||
cd ~/ | cd ~/ | ||
git clone https:// | git clone https:// | ||
mkdir build/ | mkdir build/ | ||
cd build/ | cd build/ | ||
+ | CASAPATH=$HOME/ | ||
time cmake ../ | time cmake ../ | ||
- | -DUSE_OPENMP=YES -DDATA_DIR=~/ | + | -DUSE_OPENMP=YES -DDATA_DIR=$CASAPATH/data -DUSE_HDF5=YES -DCMAKE_PREFIX_PATH=$HOME/ |
time make -j | time make -j | ||
make install | make install | ||
Line 179: | Line 206: | ||
| | ||
</ | </ | ||
+ | |||
=== 3.4 Casarest === | === 3.4 Casarest === | ||
Line 203: | Line 231: | ||
< | < | ||
- | V_AOF=2.9.0 | + | V_AOF=2.9.0 # 2.7.1, 2.8.0 |
cd ~/ | cd ~/ | ||
wget http:// | wget http:// | ||
Line 227: | Line 255: | ||
cd ~/ | cd ~/ | ||
RELEASE=LOFAR-Release-2_19 && svn checkout --ignore-externals -N https:// | RELEASE=LOFAR-Release-2_19 && svn checkout --ignore-externals -N https:// | ||
+ | # 2_16_4, 2_16, 2_12 | ||
# | # | ||
svn update $RELEASE/ | svn update $RELEASE/ |