সাহায্য:Casacore

ডিপথট থেকে

Install in Ubuntu 13.10

Before downloading and installing casacore install its dependencies following the instructions (or just install via synaptic):

  • cfitsio: just install the package libcfitsio3-dev from synaptic.
  • wcslib
  • blas
  • Download LAPACK and install following these instructions. Or just install via synaptic.
  • flex/bison
  • fortran compiler and fortran-to-c library, e.g. gfortran and libgfortran.

Once the dependencies are installed, install cmake via aptitude or synaptic.

Then download the source code of casacore through subversion:

svn checkout http://casacore.googlecode.com/svn/trunk/ casacore-read-only

Then,

cd casacore-read-only
mkdir build; cd build
cmake ..
make

If and only if make gives the following error:

[casa/CMakeFiles/casa_casa.dir/Arrays/ArrayUtil2.cc.o] Error 1}}

solve this by adding two lines to two files in you casacore directory: (as discussed here)

  • in file "casa/Arrays/IPosition.h" add "#include <sys/types.h>"
  • in file "casa/System/Casarc.cc " add "#include <unistd.h>"

Then run make again. It will take some time to build. But after 42% is done, another error might pop up:

[scimath/CMakeFiles/casa_scimath.dir/Functionals/SerialHelper.cc.o] Error 1

Apparantly this problem has been solved in the nrao-nov12 branch of casacore. As we have downloaded the latest source codes via svn, hopefully this error will not appear.