Menu

#87 2.15 for Ubuntu 16?

2.15
closed
2020-03-06
2020-02-21
Alex
No

Hi,

Im getting the following error while trying to install 2.15 under Ubuntu 16:

CMake Error at /usr/local/share/cmake-3.15/Modules/FindPackageHandleStandardArgs                                                                                                                                                             .cmake:137 (message):
  Could NOT find Boost (missing: python3 numpy3) (found suitable version
  "1.67.0", minimum required is "1.55.0")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_                                                                                                                                                             FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.15/Modules/FindBoost.cmake:2164 (find_package_handle_                                                                                                                                                             standard_args)
  CMakeLists.txt:34 (find_package)

I think this may be becouse the pckage libboost-numpy-dev is not avalilable for Ubuntu 16.

Below the installation script I use:

export INSTALLDIR=/opt
export AOFLAGGER_VERSION=2.15.0

apt-get install -y --no-install-recommends libxml++2.6-dev libpng12-dev libboost-filesystem${BOOST_VERSION}-dev libboost-date-time${BOOST_VERSION}-dev libboost-signals${BOOST_VERSION}-dev libboost-thread${BOOST_VERSION}-dev libcfitsio3-dev libopenblas-dev doxygen liblua5.3-dev python3-dev
mkdir -p ${INSTALLDIR}/aoflagger/build
cd ${INSTALLDIR}/aoflagger
wget --retry-connrefused "http://downloads.sourceforge.net/project/aoflagger/aoflagger-${AOFLAGGER_VERSION%%.?}.0/aoflagger-${AOFLAGGER_VERSION}.tar.bz2"
tar xf aoflagger-${AOFLAGGER_VERSION}.tar.bz2
cd ${INSTALLDIR}/aoflagger/build
cmake -DCASACORE_ROOT_DIR=${INSTALLDIR}/casacore/ -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS="-O3 -march=native -DNDEBUG" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${INSTALLDIR}/aoflagger ../aoflagger-2.15
make -j 4
make install

Is there a way to overcome it and install 2.15 under Ubuntu 16? (AFAIK Ubuntu 16 is still required for Prefactor 3, since tere are issues when trying to install Prefactor's 3 dependencies (casacore, casarest, python-casaore) under Ubuntu 18.)

Best regards,
Alex

Discussion

  • André Offringa

    André Offringa - 2020-02-22

    Hi Alex,

    You can't work around the need for boost numpy, but as far as I can tell you have these other options:

    • Best thing to do IMHO is switching to Ubuntu 18. I'm quite sure all dependencies of Prefactor 3 are installable on Ubuntu 18. AOFlagger was also tested on Ubuntu 18 / bionic and compiles without problems. I myself have build all prefactor requirements on Debian testing, which is ahead of Ubuntu 18.
    • You could install Boost manually from source. Then it provides boost numpy (with the appropriate compilation setup).
    • And of course, you could stick to aoflagger 2.14 :(.
     
    • Alex

      Alex - 2020-02-25

      Hi,

      Thank you. Solved by installing manually Boost 1.67.0.
      I was never able to compile all old versions of casacore / casarest / python-casacore libraries under Ubuntu 18 in order to install LOFARsoft 3. Do you possibly have some installation notes / scripts you could share?

      Best regards,
      Alex

       

      Last edit: Alex 2020-02-25
  • André Offringa

    André Offringa - 2020-02-22
    • assigned_to: André Offringa
    • Milestone: 2.14 --> 2.15
     
  • André Offringa

    André Offringa - 2020-03-06
    • status: open --> closed
     
  • André Offringa

    André Offringa - 2020-03-06

    Good to know its solved. I don't have notes, but I thought it is pretty straightforward. If you have specific problems/questions you can send me a mail.