Weiming-Hu / AnalogsEnsemble

The C++ and R packages for parallel ensemble forecasts using Analog Ensemble
https://weiming-hu.github.io/AnalogsEnsemble/
MIT License
18 stars 5 forks source link

Integration with Conda #120

Closed Weiming-Hu closed 2 years ago

Weiming-Hu commented 2 years ago

Installation is still very cumbersome. Maybe we can integrate with Anaconda?

lovechang1986 commented 2 years ago

The lib between anaconda and usr may conflict?

**********************************************************************
If the build system generation is complete,
you can type 'make' or 'make -j <number of cores>' to build projects.

If you have set -DCMAKE_INSTALL_PREFIX=[path],
you can also type 'make install' to build and install projects

**********************************************************************
-- Configuring done
CMake Warning at apps/anen_grib/CMakeLists.txt:20 (add_executable):
  Cannot generate a safe runtime search path for target anen_grib because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-redhat-linux/4.8.5 may be hidden by files in:
      /global/home/lizhm/anaconda3/envs/venv_anen/lib

  Some of these libraries may not be found correctly.

CMake Warning at apps/anen_netcdf/CMakeLists.txt:20 (add_executable):
  Cannot generate a safe runtime search path for target anen_netcdf because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-redhat-linux/4.8.5 may be hidden by files in:
      /global/home/lizhm/anaconda3/envs/venv_anen/lib

  Some of these libraries may not be found correctly.

CMake Warning at apps/grib_convert/CMakeLists.txt:20 (add_executable):
  Cannot generate a safe runtime search path for target grib_convert because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-redhat-linux/4.8.5 may be hidden by files in:
      /global/home/lizhm/anaconda3/envs/venv_anen/lib

  Some of these libraries may not be found correctly.
Weiming-Hu commented 2 years ago

Thanks for testing this out. Did you activate the conda env during cmake? Generally, if you activate conda env before cmake, the runtime path and search path from conda env should supercede system ones.

Weiming-Hu commented 2 years ago

Resolved offline. Closing.

Weiming-Hu commented 2 years ago

Instructions can be found here