I have the problem that I can build an executable that is linked to libboost, but when I execute the executable I will get the error that the library is not found.
The boost library is build manual on the computer and linked to the executable.
When executing the executable I will get the error:
error while loading shared libraries: libboost_regex.so.1.64.0: cannot open shared object file: No such file or directory
Even when I place the compiler boost library next to the executable, it does not work.
The application is built with the following g++ command:
g++ -o executable -O2 -I /root/filters/boost/boost/ -I /usr/include/mysql/ -lmysqlcppconn -lboost_regex -lmysqlclient -lpthread -L/root/filters/boost/boost/stage/lib/ -std=c++11 *.cpp