Cannot execute simple hello world program

Hi,

I compiled my hello.c with arm-unknown-gueabi-gcc hello.c -o hello

I put this executable in the home dir in the ramdisk.gz. The
executable is correctly statically linked but when i try to execute it
( with 777 permision indeed ) the sh returns me this message:

-sh: ./hello: not found

File exists and has the same size of the one i have on my PC.

Thanks in advance

--Luca

777 is little overboard..

Did you check the excute flag?

"chmod a+x hello" should take care of it..

Regards,

Luca Cuomo <lc.cuomo@gmail.com> writes:

Hi,

I compiled my hello.c with arm-unknown-gueabi-gcc hello.c -o hello

I put this executable in the home dir in the ramdisk.gz. The
executable is correctly statically linked but when i try to execute it
( with 777 permision indeed ) the sh returns me this message:

-sh: ./hello: not found

File exists and has the same size of the one i have on my PC.

Looks like the dynamic linker is missing.

In fact, it was a problem of dynamic linking.

I created my toolchain with crosstool-ng , but it's necessary to copy
to ld-xx.so ( and the others library indeed ) in the /bin dir in
beagleboard
filesystem. I created my toolchain with uClibc so i had to copy ld-
uClibc.so.0