public:install_lofar_centos6.5

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
Next revisionBoth sides next revision
public:install_lofar_centos6.5 [2017-01-04 16:05] Frank Breitlingpublic: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/.bashrc:+  * A more recent version of GCC with C++11 required by Casacore is activated through the module system. This also requires adding /opt/gcc-4.8.3/lib64 to the LD_LIBRARY_PATH since otherwise Pyrap will not find it and complain with
 <file> <file>
-source /usr/share/Modules/init/sh  # activate module systemneeds to be done first +File "/home/fkbreitl/local/lib64/python2.6/site-packages/python_casacore-2.1.2-py2.6-linux-x86_64.egg/casacore/tables/table.py"line 43, in <module
-module load gcc  # use gcc 4.8.3 (instead of 4.4.7for C++11 support+    from ._tables import Table 
 +ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/fkbreitl/local/lib/libboost_python.so.1.63.0) 
 +</file>
  
 +  * The packages will be installed in $HOME/local/. \\
 +  * Pyrap (python-casacore) needs a writable Python path. \\
 +
 +This adds the following lines to $HOME/.bashrc:
 +<file>
 +source /usr/share/Modules/init/sh  # activate module system, needs to be done first
 +module load gcc/4.8.3  # use gcc 4.8.3 (instead of 4.4.7) for C++11 support
 +export LD_LIBRARY_PATH=/opt/gcc-4.8.3/lib64:$HOME/local/lib:$LD_LIBRARY_PATH
 export PYTHONPATH=$HOME/local/lib64/python2.6/site-packages:$PYTHONPATH export PYTHONPATH=$HOME/local/lib64/python2.6/site-packages:$PYTHONPATH
-export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH 
 export PATH=$HOME/local:$PATH export PATH=$HOME/local:$PATH
 </file> </file>
Line 61: Line 70:
  
  
-=== 1.3 Boost ===+=== 1.3 Python === 
 +To use matplotlib 2 one also needs Python 2.7 or later. 
 + 
 +<file> 
 +V_PY=2.7.13 
 +cd ~/local/src/ 
 +wget https://www.python.org/ftp/python/$V_PY/Python-$V_PY.tgz 
 +tar xf Python-$V_PY.tgz 
 +cd Python-$V_PY 
 +./configure --prefix=$HOME/local --enable-shared                                
 +time make -j 
 +make install 
 +</file> 
 + 
 + 
 + 
 +=== 1.4 Boost ===
 Also a newer version of [[http://www.boost.org/build/doc/html/bbv2/installation.html | Boost]] is required since AOFlagger v2.8.0 and later: Also a newer version of [[http://www.boost.org/build/doc/html/bbv2/installation.html | Boost]] is required since AOFlagger v2.8.0 and later:
  
Line 73: Line 98:
 time ./b2 install --prefix=${HOME}/local time ./b2 install --prefix=${HOME}/local
 </file> </file>
- 
  
  
Line 136: Line 160:
 [[https://github.com/casacore/casacore | Casacore]] also requires the CASA data.  [[https://github.com/casacore/casacore | Casacore]] also requires the CASA data. 
 This is for example provided with [[http://casa.nrao.edu/casa_obtaining.shtml | CASA]]. \\ This is for example provided with [[http://casa.nrao.edu/casa_obtaining.shtml | CASA]]. \\
-Here we assume CASA is already installed and $HOME/local/casa is a link to the CASA folder. Then the data is in $HOME/local/casa. \\ +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: ''measures.directory: $HOME/local/casa/data'' .\\+Then the data is in $CASAPATH/data. \\ 
 +We will specify this via -DDATA_DIR, otherwise we need a ~/.casarc file with the line: ''measures.directory: $HOME/local/casa/casa/data'' .\\
  
 ''-DENABLE_TABLELOCKING=NO'' switches off table locking, since read locks could not be acquired from the AIP Lustre file system leading to errors like: ''-DENABLE_TABLELOCKING=NO'' switches off table locking, since read locks could not be acquired from the AIP Lustre file system leading to errors like:
Line 155: Line 180:
 mkdir build/casacore mkdir build/casacore
 cd build/casacore cd build/casacore
 +CASAPATH=$HOME/local/casa/casa
 time cmake ../../casacore -DBUILD_PYTHON=YES -DCMAKE_INSTALL_PREFIX=~/local -DUSE_FFTW3=YES -DENABLE_TABLELOCKING=NO \ time cmake ../../casacore -DBUILD_PYTHON=YES -DCMAKE_INSTALL_PREFIX=~/local -DUSE_FFTW3=YES -DENABLE_TABLELOCKING=NO \
-  -DUSE_OPENMP=YES -DDATA_DIR=~/local/casa/data -DUSE_HDF5=YES -DCMAKE_PREFIX_PATH=$HOME/local+  -DUSE_OPENMP=YES -DDATA_DIR=$CASAPATH/data -DUSE_HDF5=YES -DCMAKE_PREFIX_PATH=$HOME/local
 time make -j time make -j
 make install make install
Line 180: Line 206:
    --global-option=-L$HOME/local/lib --install-option=--prefix=$HOME/local    --global-option=-L$HOME/local/lib --install-option=--prefix=$HOME/local
 </file> </file>
 +
  
 === 3.4 Casarest === === 3.4 Casarest ===
  • Last modified: 2017-03-08 15:27
  • by 127.0.0.1