Ok, I found a solution.

After adding the library path to LD_LIBRARY_PATH, it works.