Hint: LD_LIBRARY_PATH and ctest

Discussion about building and installing Elmer

Hint: LD_LIBRARY_PATH and ctest

Postby 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.
tzwinger
Site Admin
 
Posts: 79
Joined: 24 Aug 2009, 12:20

Return to Installation & compilation

Who is online

Users browsing this forum: No registered users and 2 guests