0
Lucil

-bash: No such file or directory

Recommended Posts

I'm trying to run an executable on an OrangePi Prime. The message is:

-bash: <filename>: No such file or directory

The output of the file command on the executable is:

<filename>: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=xxx, not stripped

The app runs fine on OrangePi One, OrangePi Zero and Raspberry Pi.

Share this post


Link to post
Share on other sites
16 minutes ago, Lucil said:

I'm trying to run an executable on an OrangePi Prime

The OPiPrime is an H5 SoC, therefore a 64bits processor ...

You preferably need to recompile that executable as 64bits.

What is that application ?

 

If you can't, there still some workaround :

From an H3 board, copy the missing files from it /lib/arm-linux-gnueabihf/ along with some symlinks, example :

mkdir /lib/arm-linux-gnueabihf
scp <ip_of_h3>:/lib/arm-linux-gnueabihf/ld-2.24.so /lib/arm-linux-gnueabihf/ld-2.24.so
ln -s /lib/arm-linux-gnueabihf/ld-2.24.so /lib/ld-linux-armhf.so.3
scp <ip_of_h3>:/lib/arm-linux-gnueabihf/libc-2.24.so /lib/arm-linux-gnueabihf/libc-2.24.so
ln -s /lib/arm-linux-gnueabihf/libc-2.24.so /lib/arm-linux-gnueabihf/libc.so.6

That was enough for me to try a plain C 32bits executable on the H5 !

But maybe your will need more libs to be copied/symlinked ...

 

Share this post


Link to post
Share on other sites
46 minutes ago, martinayotte said:

The OPiPrime is an H5 SoC, therefore a 64bits processor ...

You preferably need to recompile that executable as 64bits.

What is that application ?

It's a comercial app, sources are closed. All platforms are supported (win, lin, mac), but ARM is provided just as a courtesy and I don't know if a 64 bit build can be made available.

Share this post


Link to post
Share on other sites
3 hours ago, Lucil said:

Would it be possible to use a 32bit build made for another board?


Yes, you can have 32bit user land on 64bit board. This problem is generic and unrelated to Armbian.

Share this post


Link to post
Share on other sites
4 hours ago, Lucil said:

Would it be possible to use a 32bit build made for another board?

I would rather install only the 32bits libraries needed as I explain above, leaving the rest of the OS to 64bits...

Share this post


Link to post
Share on other sites

It's difficult to guess all the needed libs. I've installed the 32bit userland and now I get an "Illegal instruction" error. So that's why I was thinking of installing a complete 32bit build. Somewhat like RPi guys do and I guess it's because of them my ARM app build is 32bit, as the most widespread platform.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0