how to make excutable files based on source codes
I write some programs on linux with C I want to run these programs on many remote computers, which are installed with fedora or ubuntu
I compiled the program with gcc on local machine, however the excutable file is not workable on remote machines.
for example: I use
gcc -o udp_server udp_server.c
on local machine to get a excutable binary file udp_server and then I copy it to a remote machine and run it there, the error is:
-bash: ./udp_server: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
the local machine: fedora Fedora release 16 (Verne) Kernel \r on an \m (\l) 3.6.10-2.fc16.x86_64 GNU/Linux
the remote machine: Fedora release 12 (Constantine) Kernel \r on an \m (\l) 2.6.32-36.onelab.x86_64 GNU/Linux
on these remote machines, there are no gcc compiler so I hope I can make some excutable files so that they can be executed on those remote machines
so what kind of excutable files should I make, and how to make them? any recommenation tools or procedures? thanks!