Casacore installation on Ubuntu
Here are some steps to install casacore on Ubuntu (specifically 10.04 LTS ran as a virtual machine with VirtualBox on Ubuntu 11.10). This posting uses provided packages where possible and avoids, if necessary the installation of packages from source. This is mostly meant as a reference for myself and hence includes a few things that I had to specifically do and probably won’t work for anyone else, I hope it does, but we all know what computers are like! Of course, you should go and see the latest on the [google code casacore] page. This is using casacore version 1.3.0.
wget casacore (see link above) and unpack.
sudo apt-get install build-essential
sudo apt-get install scons fort77 subversion g++ cmake libblas-dev liblapack-dev libqdbm-dev libfftw3-dev libcfitsio3-dev libboost-python-dev slang-cfitsio flex bison gfortran libhdf5-serial-dev libreadline5-dev python-scipy python-matplotlib python-pyfits
Download wcslib – and run make, make install
tar -xf wcslib.tar.bz2
make && make install && cd ..
When compiling casacore I had a specific problem where a header file couldn’t be found from wcslib, so quick fix;
sudo cp -r wcsconfig.h /usr/local/include/wcslib #from the wcslib dir
and that seemed to fix it.
Now install casacore with scons:
scons –prefix=/usr/local –enable-shared
sudo scons install
There are many different options available for the compilation – all the above does is make the shared libraries too… you should look into this but remember that the options.cache file needs to be removed if you do another make.