Skip to content
UCLGuichard edited this page Nov 16, 2017 · 11 revisions

Here are the steps I followed in my attempts to install sopt and purify on various machines and OSes. They shouldn't be taken as strict guidelines but more as indications of what has worked or not.

On a Ubuntu Xenial VM:

  1. Apt-get install cmake
  2. Apt-get install fftw3
  3. Apt-get install libtiff5
  4. Apt-get install mpi
  5. Apt-get install libeigen3-dev
  6. Apt-get install libspdlog-dev
  7. Install cfitsio:
    1. cd /usr/local/src/
    2. wget ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3270.tar.gz -O cfitsio3270.tar.gz
    3. tar zxvf cfitsio3270.tar.gz
    4. cd cfitsio
    5. `./configure --prefix=/usr
    6. make
    7. make install
    8. make clean
  8. apt-get install libyaml-cpp-dev
  9. apt-get install libccfits-dev
  10. Added these lines at the top of the CMakeLists.txt
    1. set(FFTW3_INCLUDE_DIR "/usr/lib/x86_64-linux-gnu")
    2. set(FFTW3_LIBRARIES "/usr/lib/x86_64-linux-gnu”)
    3. set(MPI_C_LIBRARIES "/usr/lib/x86_64-linux-gnu")
    4. set(MPI_C_INCLUDE_PATH "/usr/lib/x86_64-linux-gnu")
    5. set(MPI_CXX_LIBRARIES "/usr/lib/x86_64-linux-gnu")
    6. set(MPI_CXX_INCLUDE_PATH "/usr/lib/x86_64-linux-gnu”)
  11. apt-get install libboost-dev