Installing LOFAR software on Ubuntu 12.04
These are some notes on how I installed some LOFAR software on Ubuntu 12.04. They are based on some notes I found on the LOFAR wiki at http://www.lofar.org/operations/doku.php?id=engineering:user_software:ubuntu_12_4.
Install main LOFAR suite
===============================================
N.B. Notes below install to strange directory. Build in one directory, and install everything else into the CASACORE directory (binary)
Dependencies:
libgtkmm-2.4-dev python-matplotlib python-pyfits libatlas-base-dev
mpi-default-bin mpi-default-dev libfreetype6-dev python-setuptools
libxml2-dev libpng12-dev libcfitsio3 libcfitsio3-dev libboost-all-dev
autoconf autoconf-archive autogen automake binutils-dev cmake cmake-curses-gui
cvs doxygen flex gfortran git guile-1.8-dev ipython libblas-dev libblitz0-dev
libboost-all-dev libboost-dev libfftw3-dev libfftw3-doc libgfortran3
libglib2.0-dev libgsl0-dev liblapack-dev liblog4cxx10 liblog4cxx10-dev
libopenmpi-dev libpqxx3-dev libx11-dev mgdiff mpi-default-dev patch pgplot5
python-dev python-numeric python-numpy python-scipy scons subversion-tools
swig bison libbison-dev
tcl tcl-dev tk tk-dev tk8.5-dev tcl8.5-dev
libhdf5-dev (oder: libhdf5-serial-1.8.4 libhdf5-serial-dev)
### "libhdf5-serial" is needed for DAL, it doesn't work with "libhdf5-openmpi"
wcslib-dev liblog4cplus-dev liblog4cplus-1.0-4 cython
###for parmdbplot:
python-sip python-qt4
########## LOFAR software:
Download packages:
##################
mkdir Downloads
cd Downloads
wget ftp://ftp.atnf.csiro.au/pub/software/asap/data/asap_data.tar.bz2
Download and Build Casacore:
############################
tar -xjvf ../Downloads/asap_data.tar.bz2
(This creates the "data" subdirectory)
mkdir BuildDir/casacore
cd BuildDir/casacore
svn co http://casacore.googlecode.com/svn/trunk source
mkdir -p build/opt
cd build/opt
cmake -DBUILD_TESTING=NO -DCMAKE_INSTALL_PREFIX=/opt/lofar-stuff -DUSE_FFTW3=Yes -DUSE_THREADS=YES -DUSE_HDF5=YES -DUSE_OPENMP=YES -DDATA_DIR=/opt/lofar-stuff/data ../../source
make -j12
make install
Install Casacore data:
############################
cd BuildDir/..
tar -xjvf Download/asap_data.tar.bz2
Download and Build pyrap
############################
mkdir /cluster/lofar/BuildDir/pyrap
cd /cluster/lofar/BuildDir/pyrap
svn co http://pyrap.googlecode.com/svn/trunk dev-source
export LOFAR_STUFF_ROOT="/opt/lofar-stuff"
export PATH="${PATH}:${LOFAR_STUFF_ROOT}/bin/"
export LD_LIBRARY_PATH="${LOFAR_STUFF_ROOT}/lib/"
export PYTHONPATH="${LOFAR_STUFF_ROOT}/lib/python/"
ln -s /opt/soft/lofar-stuff/lib/ /opt/soft/lofar-stuff/lib64
cd dev-source/
./batchbuild-trunk.py --casacore-root=/opt/lofar-stuff --prefix=/opt/lofar-stuff --python-prefix=/opt/lofar-stuff/lib/python
Download and Build casarest
###########################
mkdir /cluster/lofar/BuildDir/casarest
cd /cluster/lofar/BuildDir/casarest
svn co https://svn.astron.nl/casarest/trunk/casarest source
mkdir build
cd build
cmake -DCASACORE_ROOT_DIR=/opt/lofar-stuff -DBUILD_ALL=1 -DCMAKE_INSTALL_PREFIX:PATH=/opt/lofar-stuff ../source
make -j12
make install
Download and Build the LOFAR Software
#####################################
Download latest copy of LOFAR software
mkdir -p build/gnu_opt
cd build/gnu_opt
cmake -DCASACORE_ROOT_DIR=/opt/lofar-stuff/ -DBUILD_SHARED_LIBS=ON -DUSE_OPENMP=ON -DBUILD_PACKAGES="ParmDB Calibration DP3 Pipeline MSLofar LofarFT GSM" -DCMAKE_INSTALL_PREFIX:PATH=/opt/lofar-stuff ../../LOFAR/
make -j12
make install
Note: I found that the above instructions installed the pyrap python libraries in a separate folder to where LOFAR was looking, so I just found them in lofar-software/lib/python and manually pasted them into the right directory (the one LOFAR regards as PYTHONPATH)
Subscribe to:
Post Comments (Atom)
HTML form won't submit (Angular)
It turns out if you mix normal HTML forms with Angular ones (i.e. using FormsModule) Angular will disable the default behaviour of forms on...
-
Recently I needed to use python to extract the contents of a password-protected zip archive and I came across a few issues I thought would b...
-
Scientific computing and HPC developers will probably be familiar with Intel's C/C++ compiler suite , which can be used to compile...
-
Alchemy allows users to donate to their chose charities via text message, which it used to do automatically using Android's SmsManager ...
No comments:
Post a Comment
Note: only a member of this blog may post a comment.