Installing casacore 1.5.0

Casacore no longer uses the scons system so you have to use cmake (make sure you have a new-ish version).
Dependencies that you probably just can’t get from apt or yum: wcslib
install wcslib
wget ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib.tar.bz2
tar -xf wcslib.tar.bz2
cd wcslib-4.13.4
./configure --prefix=/import/apgpu02/sgeorge/wcslib/
make -j4 && make install

now make casacore
cd /import/apgpu02/sgeorge/
wget http://casacore.googlecode.com/files/casacore-1.5.0.tar.bz2
tar -xf casacore-1.5.0.tar.bz2
cd casacore-1.5.0
mkdir build
cd build
mkdir /import/apgpu02/sgeorge/casacore1.5/
cmake .. -DMODULE=all -DBLAS_LIBRARIES=/usr/lib64/libblas.so -DLAPACK_LIBRARIES=/usr/lib64/liblapack.so -DREADLINE_LIBRARY=/usr/lib64/libreadline.so -DFFTW3_LIBRARIES=/usr/lib64/libfftw.so -DCFITSIO_LIBRARIES=/usr/lib64/libcfitsio.so -DCMAKE_INSTALL_PREFIX=/import/apgpu02/sgeorge/casacore1.5/ -DWCSLIB_ROOT_DIR=/import/apgpu02/sgeorge/wcslib/lib -DBUILD_SHARED_LIBS=OFF -DWCSLIB_LIBRARY=/import/apgpu02/sgeorge/wcslib/lib/libwcs.so
make -j4 && make install

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: