GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.3k stars 819 forks source link

[Bug]: bf1942 missing dependency libncurses5:i386 v2 #4333

Closed o4ier closed 4 months ago

o4ier commented 1 year ago

User story

As a user I want that the server starts without a missing library error.

Game

Battlefield 1942

Linux distro

RedHat 9

Command

command: start

Further information

OS is AlmaLinux9 x64, which is a clone of RHEL9. Needed package would be ncurses-compat-libs:i686, which is not available The x86_64-Version of ncurses-compat-libs does not help, as a Symlink created by myself from /usr/lib/libncurses.so.5 to /usr/lib64/libncurses.so.5 creates a wrong ELF class: ELFCLASS64 error in the output

So bf1942 is broken on EL9, I haven't found a source for libncurses5:i686 yet.

Maybe you can help?

(if this sounds familiar to you: contents are slightly copied from #3097 )

Relevant log output

./start.sh: using statically linked binary
./bf1942_lnxded: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

Steps to reproduce

  1. install bt1942 server
  2. try to start the server
dgibbs64 commented 11 months ago

https://access.redhat.com/solutions/6907421 looks like its available in epel

I got this working by copying libncurses.so.5 and libtinfo.so.5 from ubuntu 22.04 and added export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"

I should be able to implement a fix for this.

My other question is whats the best way to run bf1942? As its difficult to find decent details on how to run the client

dgibbs64 commented 8 months ago

Another suggestion for this is to run the LinuxGSM docker container

dgibbs64 commented 4 months ago

Closing as solution is to enable EPEL