I recently bought a Raspberry Pi. I already have configured it, and I install a cross compiler for arm on my desktop (amd64). I compiled a simple "hello world" program and then I copy it from my desktop to my Pi with scp ./hello david@192.168.1.33:~/hello
.
After login in my Pi I run ls -l hello
and I get a normal response:
-rwxr-xr-x 1 david david 6774 Nov 16 18:08 hello
But when I try to execute it, I get the following:
david@raspberry-pi:~$ ./hello
-bash: ./hello: No such file or directory
david@raspberry-pi:~$ file hello
hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x6a926b4968b3e1a2118eeb6e656db3d21c73cf10, not stripped
david@raspberry-pi:~$ ldd hello
not a dynamic executable
file hello
andldd hello
and post the output. – goldilocks Nov 16 '13 at 17:22