yatisht / usher

Ultrafast Sample Placement on Existing Trees
MIT License
120 stars 40 forks source link

Mac OS installation script seems broken #369

Open aofarrel opened 4 months ago

aofarrel commented 4 months ago

When installing via ./install/installMacOS.sh, Homebrew will update open-mpi (if it's already installed) to 5.0.2. However, later down the line installation will fail us the script searches for open-mpi 5.0.0, which is not available. ls /usr/local/Cellar/open-mpi/ indicates that the path to open-mpi is correct, it's just that 5.0.0 isn't there anymore. Rerunning after 5.0.2 was installed results in the same error.

open-mpi does not appear to support downgrading via brew install open-mpi@5.0.0 so this might be tricky for users to work around. However, the Docker script works fine, so Mac users who can use Docker still have an alternative.

System information

Partial log

-- 0.6.3
-- Using Protocol Buffers 4.25.3
CMake Error in /Users/aofarrel/github/usher/build/CMakeFiles/CMakeScratch/TryCompile-bk4ptX/CMakeLists.txt:
  Imported target "MPI::MPI_C" includes non-existent path

    "/usr/local/Cellar/open-mpi/5.0.0/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error at /usr/local/Cellar/cmake/3.28.3/share/cmake/Modules/FindMPI.cmake:1278 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.28.3/share/cmake/Modules/FindMPI.cmake:1322 (_MPI_try_staged_settings)
  /usr/local/Cellar/cmake/3.28.3/share/cmake/Modules/FindMPI.cmake:1645 (_MPI_check_lang_works)
  CMakeLists.txt:38 (find_package)

-- Configuring incomplete, errors occurred!
/usr/local/Cellar/cmake/3.28.0/bin/cmake -S/Users/aofarrel/github/usher -B/Users/aofarrel/github/usher/build --check-build-system CMakeFiles/Makefile.cmake 0
make: /usr/local/Cellar/cmake/3.28.0/bin/cmake: No such file or directory
make: *** [cmake_check_build_system] Error 1
receiving incremental file list