Libopenmc.so Error

New computer, trying to get fresh openmc install working. When I try to run one of my test files that utilizes openmc.lib, I get this error:

It looks like it’s looking for your library file, and it either doesn’t exist at all or it doesn’t exist where it expects. Have you done anything with your LD_LIBRARY_PATH variable? Also are you installing from source or from conda? Looks like it’s probably conda

EDIT: I noticed the error mentions python 3.11, but your conda environment on the prompt says py3.7. Perhaps it’s looking in the wrong spot and you need to update to python 3.11 in your conda environment?

@Daedalus is it possible that the Python API was installed before compiling the OpenMC C++ library? If there were the case, the libopenmc.so library wouldn’t exist yet and could result in this error.

I was still using [this install script]. Problem solved by installing with condaforge.(Script for installing OpenMC using conda · GitHub)

1 Like