You need to add the path to libanonymous
to the enviroment variable LD_LOAD_LIBRARY
.
Update:
To do so:
- Locate the library, for example doing:
find / -name "libanonymous.so.2"
or bylocate libanonymous.so.2
- Add the path found like so:
export LD_LOAD_LIBRARY=$LD_LOAD_LIBRARY:<path to lib>
Update 1:
From your comment to Anon's answer I see that the lib in question is located under /usr/lib64/sasl2/
.
So you might like to set LD_LOAD_LIBRAY
path like so:
export LD_LOAD_LIBRARY=$LD_LOAD_LIBRARY:/usr/lib64/sasl2/
Update 2
This needs to be done in the same shell that later then executes the program needing the libraries (cppapplication_1
).
cd <dir for cppapplication_1>; export LD_LOAD_LIBRARY=$LD_LOAD_LIBRARY:/usr/lib64/sasl2/; ./cppapplication_1