candi icon indicating copy to clipboard operation
candi copied to clipboard

investigate symengine library not found

Open tjhei opened this issue 2 years ago • 4 comments

I have gotten reports of the form

~/aspect/aspect-release: error while loading shared libraries: libsymengine.so.0.7: cannot open shared object file: no such file or directory

We should investigate why that is the case.

tjhei avatar Mar 23 '22 20:03 tjhei

I met the same problem, how to solve it?

SJ2050cn avatar Apr 07 '22 14:04 SJ2050cn

I met the same problem, how to solve it?

I temporarily fixed this by adding the path where libsymengine.so.0.7 locates to LD_LIBRARY_PATH. A strange thing is when I ldd ./step1 | | grep symengine, it shows duplicated shared object dependencies, but one shows not found, the other one shows the right path.

image-20220408094555210

I add libsymengine.so.0.7 path to LD_LIBRARY_PATH and run ldd ./step | grep symengine again, it only shows one shared object pointing to right .so path. It seems that symengine is not set correct rpath completely.

image-20220408094648231

To avoid adding path to LD_LIBRARY_PATH every time, I add this step in modulefiles, like follows:

image-20220408094755069

SJ2050cn avatar Apr 08 '22 01:04 SJ2050cn

If installed correctly the symengine lib path should be listed in the deal.IIConfig.cmake under both DEAL_II_LIBRARIES_DEBUG and DEAL_II_LIBRARIES_RELEASE The cmake file is in the deal install dir under lib/cmake/deal.II

If one is listed did you check whether there is indeed a libsymengine.so.0.7 (should be a symlink)

jpthiele avatar Oct 28 '22 08:10 jpthiele

Here is another link to someone with this issue: https://community.geodynamics.org/t/local-install-error-loading-libsymengine/2310

tjhei avatar Nov 07 '22 13:11 tjhei