a.out: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
As you see your executable is dynamically linked, this means at execution time, it will look for the libraries in your system. If the libraries are not in your system or not in the PATH your executable will not found it and you run into this problem.
*a.out: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.16, not stripped*
*As you see your executable is dynamically linked, this means at execution
time, it will look for the libraries in your system. If the libraries are
not in your system or not in the PATH your executable will not found it and
you run into this problem.*