I have an executable I want to be able to distribute and run in other Linux systems. Is there a way to be reasonably sure if this will work, without access to the final runtime environment?
For example, I am concerned my executable could be using a dynamic library that is only present on my development machine.
Supply any relevant shared libraries with the executable, and set
$LD_LIBRARY_PATHin a shell script that invokes the executable to tell the linker where to find the shared libraries. See theld.so(8)man page for more details, and be sure to follow the appropriate licenses.