ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.3k stars 227 forks source link

how to solve "bash: No such file or directory"? #974

Closed HexCat-HC closed 2 months ago

HexCat-HC commented 3 months ago

At first: I reading MarkDown file to setup box86, I created a shell file to use the Pi-Apps-Coders apt repository and install precompiled box86 debs. And then I type "box86 --version", bash tell me the wrong:

bash: /usr/local/bin/box86: No such file or directory.

After that: I remove box86 in repository and try to build it.

sudo apt remove box64-generic-arm box86-generic-arm --purge
git clone https://github.com/ptitSeb/box86
cd box86
mkdir build;cd build
cmake .. -D RPI3ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
sudo make install

I type "box86 --version" but the bash warning me again:

bash: /usr/local/bin/box86: No such file or directory.

So how should I do?

ptitSeb commented 3 months ago

As detailled in COMPILE.md, on 64bits OS you need to do:

sudo dpkg --add-architecture armhf && sudo apt-get update
sudo apt-get install libc6:armhf -y

That will will just allow you to run box86. You will probably need to add more libs to run other things (libX11, libSDL2, gtk2...)

HexCat-HC commented 2 months ago

okey, when I type "sudo apt-get install libc6:armhf -y", the problem was solved.

Box86 with Dynarec v0.3.7 fc0b51f3 built on Jul  3 2024 10:02:23

anyway, thank you ptitSeb!