I wrote a tiny program that requires some libraries including libboost_filesystem, libboost_program_options and libcurl.
I compiled it on my home machine and took the binary to my computer at work to test it there. But there it gives the following error message when I try to start the program:
error while loading shared libraries:
libboost_filesystem.so.1.42.0: cannot
open shared object file
But when I search for this file I see that it exists in: /usr/lib/libboost_filesystem.so.1.42.0
Did I something wrong during the compilation / linking of my program? If yes what do I have to do to make it work on other machines?
ldd
can help me find out what's wrong. What doesldd ./your_executable
say? – Sandryfile ./your_executable
andfile /usr/lib/libboost_filesystem.so.1.42.0
to check that the architectures match :) – Sandry