How can I know if my executable will also to run on other computers (linux)?
问题 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. 回答1: Supply any relevant shared libraries with the executable, and set $LD_LIBRARY_PATH in a shell script that invokes the executable to tell the linker where to find the shared