Hint: LD_LIBRARY_PATH and ctest

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

Hint: LD_LIBRARY_PATH and ctest

Post by tzwinger »

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