Hint: LD_LIBRARY_PATH and ctest

Discussion about building and installing Elmer
Post Reply
tzwinger
Site Admin
Posts: 86
Joined: 24 Aug 2009, 12:20
Contact:

Hint: LD_LIBRARY_PATH and ctest

Post by tzwinger » 19 Apr 2017, 09:56

This is a hint for all those having issues with ctest reporting troubles for resolving symbols in libelmersolver.so while ctest-ing a new compiled version. We came across the fact that if during test-time (at least on a Ubuntu/Linux Mint system) the libelmersolver.so of an existing installation exists in the LD_LIBRARY_PATH, this will be used by ctest instead of the one in builddir/fem/src/libelmersolver.so. In other words, then you are not testing your freshly compiled, but the one of an earlier installed version. Should the earlier installed version have diverging dependencies as the tested one, the tests will mysteriously fail.

Post Reply