Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running bash with box86 errors with Error initializing native libtinfo.so.6 #3

Open
Yeshey opened this issue Jun 28, 2023 · 1 comment

Comments

@Yeshey
Copy link

Yeshey commented Jun 28, 2023

Trying to run steamcmd.sh with bash, and it errors with Error: file is not found (check BOX64_PATH)

setting BOX86_LOG=1 lets us see that the problem is libtinfo.so.6:

Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores
Params database has 22 entries
Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 11 2023 02:04:53
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 6 Env var
Looking for /root/box86/tests/bash
bash detected, disabling banner
argv[1]="/root/Steam/steamcmd.sh"
argv[2]="/bin/bash"
Rename process to "bash"
Error initializing native libtinfo.so.6 (last dlerror is libtinfo.so.6: cannot open shared object file: No such file or directory)
Error loading needed lib libtinfo.so.6
Error loading one of needed lib
Error: loading needed libs in elf /root/box86/tests/bash

I've tried installing these libraries with no luck : libncurses6 libncurses5 libtinfo5 libtinfo6

This is the Dockerfile I'm trying to run in a Oracle server with arm/v8:

FROM weilbyte/box:debian-11

RUN apt-get update && apt-get install -y \
    git \
    wget \
    libncurses6 libncurses5 libtinfo5 libtinfo6

# Download and install SteamCMD
RUN mkdir -p ~/Steam && \
    cd ~/Steam && \
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz && \
    tar zxvf steamcmd_linux.tar.gz && \
    chmod +x steamcmd.sh

RUN git clone https://github.com/ptitSeb/box86 ~/box86

ENV BOX86_LOG=1

ENTRYPOINT ["/usr/local/bin/box86", "/root/box86/tests/bash", "/root/Steam/steamcmd.sh"]

But running directly the steamcmd executable directly seems to work:

root@15265adcc673:/# /usr/local/bin/box86 /root/Steam/linux32/steamcmd
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores
Params database has 22 entries
the x86_64 bash "/bin/bash" is not an x86_64 binary
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 11 Env var
Looking for /root/Steam/linux32/steamcmd
steam detected
Rename process to "steamcmd"
Using native(wrapped) librt.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Redirecting stderr to '/root/Steam/logs/stderr.txt'
Using native(wrapped) crashhandler.so
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
[----] Downloading update (0 of 59532 KB)...
[  0%] Downloading update (0 of 59532 KB)...
[  0%] Downloading update (0 of 59532 KB)...
[...]
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching...

Also reported here: ptitSeb/box86#840

@Feuerpfeil
Copy link

I had the same problem...
with box64 it works fine tho, so maybe try this?

By searching for an answer as well, I found out that libtinfo.so.6 somehow doesnt seem to exist on the system after installing "libncurses6 libncurses5 libtinfo5 libtinfo6". And someone on a forum wrote that it doesnt get shipped with some versions of them. So using a different source for those packages might be the answer to solving this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants