我想使用 steamcmd 在我的 oracle cloud arm 实例上运行游戏服务器,但无法使其工作。
当我运行启动 steamcmd 的脚本时,我得到:
Box86 with Dynarec v0.2.5 9ee0ac92 built on Feb 19 2022 19:12:07
Error: reading elf header of ./steamcmd.sh, try to launch natively instead
Segmentation fault (core dumped)
然后我发现那个答案。所以我运行了代码。(另外,如果我直接进入 linux32 文件夹并运行 steamcmd,也会得到相同的结果)
我第一次得到:
Box86 with Dynarec v0.2.5 9ee0ac92 built on Feb 19 2022 19:12:07
Redirecting stderr to '/root/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[ 0%] Checking for available update...
[----] Downloading update (0 of 53847 KB)...
[ 0%] Downloading update (48 of 53847 KB)...
[ 0%] Downloading update (3874 of 53847 KB)...
[ 7%] Downloading update (7065 of 53847 KB)...
[ 13%] Downloading update (9733 of 53847 KB)...
[ 18%] Downloading update (12226 of 53847 KB)...
[ 22%] Downloading update (14735 of 53847 KB)...
[ 27%] Downloading update (17164 of 53847 KB)...
[ 31%] Downloading update (19641 of 53847 KB)...
[ 36%] Downloading update (22153 of 53847 KB)...
[ 41%] Downloading update (24577 of 53847 KB)...
[ 45%] Downloading update (27320 of 53847 KB)...
[ 50%] Downloading update (29852 of 53847 KB)...
[ 55%] Downloading update (32286 of 53847 KB)...
[ 59%] Downloading update (34919 of 53847 KB)...
[ 64%] Downloading update (36171 of 53847 KB)...
[ 67%] Downloading update (37430 of 53847 KB)...
[ 69%] Downloading update (38683 of 53847 KB)...
[ 71%] Downloading update (40047 of 53847 KB)...
[ 74%] Downloading update (41318 of 53847 KB)...
[ 76%] Downloading update (42556 of 53847 KB)...
[ 79%] Downloading update (43807 of 53847 KB)...
[ 81%] Downloading update (45166 of 53847 KB)...
[ 83%] Downloading update (46411 of 53847 KB)...
[ 86%] Downloading update (47647 of 53847 KB)...
[ 88%] Downloading update (48883 of 53847 KB)...
[ 90%] Downloading update (50221 of 53847 KB)...
[ 93%] Downloading update (51447 of 53847 KB)...
[ 95%] Downloading update (52686 of 53847 KB)...
[ 97%] Downloading update (53847 of 53847 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching...
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 7 items discarded.
然后第二次:
Box86 with Dynarec v0.2.5 9ee0ac92 built on Feb 19 2022 19:12:07
max open descriptors set to 9216
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/root/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
[ 0%] Downloading update...
[ 0%] Checking for available updates...
[----] Download complete.
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
其他时候如果我运行命令:
Box86 with Dynarec v0.2.5 9ee0ac92 built on Feb 19 2022 19:12:07
max open descriptors set to 9216
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/root/Steam/logs/stderr.txt'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[ 0%] Checking for available updates...
[----] Verifying installation...
[----] !!! Fatal Error: Failed to load steamconsole.so
在 Steam 目录的日志文件中,每次我运行命令时,最后一行都会出现“Shutdown”。
我跟着本指南安装 box86。唯一的区别是,在最后一个“make”之后,我运行 make install,退出 chroot 并 systemctl restart systemd-binfmt
屏幕抓取:
./+o+- ubuntu@ubuntuarm
yyyyy- -yyyyyy+ OS: Ubuntu 20.04 focal
://+//////-yyyyyyo Kernel: aarch64 Linux 5.11.0-1028-oracle
.++ .:/++++++/-.+sss/` Uptime: 14h 49m
.:++o: /++++++++/:--:/- Packages: 660
o:+o+:++.`..```.-/oo+++++/ Shell: bash 5.0.17
.:+o:+o/. `+sssoo+/ Disk: 4.0G / 55G (8%)
.++/+:+oo+o:` /sssooo. CPU: 2x Unknown
/+++//+:`oo+o /::--:. GPU:
\+/+o+++`o++o ++////. RAM: 370MiB / 11948MiB
.++.o+++oo+:` /dddhhh.
.+.o+oo:. `oddhhhh+
\+.++o+o``-````.:ohdhhhhh+
`:o+++ `ohhhhhhhhyo++os:
.o:`.syhhhhhhh/.oo++o`
/osyyyyyyo++ooo+++/
````` +oo+++o\:
`oo++.
答案1
为我工作您发布的指南,尝试更改命令的路径,如果 steamcmd 安装在 /home/ubuntu/ 中,请尝试这两个命令。否则,只需将 /home/ubuntu/ 更改为 steamcmd 文件夹所在的位置即可。
$ schroot -c debian-armhf
$ LD_LIBRARY_PATH="/home/ubuntu/steamcmd/linux32/:$LD_LIBRARY_PATH" ~/box86/build/box86 /home/ubuntu/steamcmd/linux32/steamcmd