Hi,

Normally, the message: "-/bin/sh: ./<executable name>: not found" is printed if 
the GLIBC that is used by the executable doesn't match with the GLIBC that's 
installed in target's root filesystem.

To solve it recompile your executable with root filesystem's GLIBC and copy the 
correct GLIBC into the root filesystem. See 
http://embeddedfreak.wordpress.com/2008/12/18/creating-simple-root-filesystem-for-embedded-linux/
 to make simple rootfs

Regards,
Daniel


> -----Original Message-----
> From: [email protected] [mailto:ltib-
> [email protected]] On Behalf Of Andrea Galbusera
> Sent: Monday, April 18, 2011 2:51 PM
> To: Roberto Giovoni
> Cc: [email protected]; 'Ronco'
> Subject: Re: [Ltib] Question about file execution
> 
> Roberto,
> please, see comments below.
> 
> On Fri, 2011-04-15 at 11:21 +0200, Roberto Giovoni wrote:
> > We have created a file system image for LPC3250 for Phytec board
> > with linux kernel image ver 2.6.34.
> >
> > We have the following problem:
> >
> > 1) we have copied in /home/teledata/Pulsar directory our Pegasus executable
> > file
> > 2) we start to run this file (always from directory above) with the line
> > command ./Pegasus
> > 3) we obtain the message ""-/bin/sh: ./Pegasus: not found"
> 
> Could you please execute the following commands on the target and attach
> the output?
> $ ls -l /home/teledata/Pulsar
> $ ls -l /bin/sh
> $ file /home/teledata/Pulsar/Pegasus
> 
> Last command might fail if you don't have the command 'file' available
> on your target filesystem. In such a case, is 'Pegasus' an executable or
> a shell script file?
> 
> Regards,
> Andrea


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to