Sorry, you need to enable JavaScript to visit this website.

can't run app on board with ubuntu file system

Unsolved
3 posts / 0 new
kay's picture
kay
Junior(0)
can't run app on board with ubuntu file system

Hi,
I cross-compiled an ELF and uploaded it into rootfs(Ubuntu12.10), but not able to run it on board. The console printout:"-bash: ./filename: No such file or directory."
Tried chmod, but no help.
The ELF can be run on board with the origin file system (deriving from uramdisk.image.gz)
Any idea?
thank you !

hockeyman1972's picture
hockeyman1972
Junior(11)
Missing libraries

Hi,
There are several reasons why this might happen, but I think the most likely cause is that the executable you are trying run is either compiled for the wrong word length, or there are dynamic libraries the executable requires that are not installed on the Ubuntu target.  You can check the file format by going to the directory on your target that contains your executable, and type:   file <executable name>.   You should get something back that indicates it is a 32-bit LSB executable for ARM if it is the correct format, in which case it likely will also tell you that it is dynamically linked.   If the latter is the case, then of course the solution is to install whatever libraries it's looking for in the root file system.
Ron

kay's picture
kay
Junior(0)
Solved, Thanks:)

Hi Ron,
You're right, caused by missing .so libraries.
it now works fine.
Thank you!