Closed Weiming-Hu closed 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.
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.
Resolved offline. Closing.
Instructions can be found here
Installation is still very cumbersome. Maybe we can integrate with Anaconda?