I’m trying to set up a development server on a FreeBSD box I have but, FiveM doesn’t want to start for some reason.
I’ve tried just extracting FiveM and running it but, I got a “command not found” error. I then installed mono which, then made another error spew out.
mono --version:
Mono JIT compiler version 5.10.1.47 (5.10.1.47 Tue Jun 26 02:19:24 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
sh run.sh:
ELF binary type "0" not known.
exec: /root/server/bins/alpine/opt/cfx-server/ld-musl-x86_64.so.1: Exec format error
Is there a way to get this to work on FreeBSD system by default or, would I have to compile the server source myself? If the latter, does anyone know how to do that?
However, I get a segmentation fault when trying to run the server after using brandelf -t Linux alpine/opt/cfx-server/ld-musl-x86_64.so.1 (I’m assuming that I need to rebrand this as it’s the first thing loaded in the shell script)
And when I unload the Linux64 kernel and use the normal Linux one I get
root@FiveM:~/server # kldunload linux64
root@FiveM:~/server # kldload linux
root@FiveM:~/server/bins # bash ./run.sh
ELF binary type "3" not known.
./run.sh: line 8: /root/server/bins/alpine/opt/cfx-server/ld-musl-x86_64.so.1: cannot execute binary file: Exec format error
./run.sh: line 8: /root/server/bins/alpine/opt/cfx-server/ld-musl-x86_64.so.1: No error: 0
brandelf -l
known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0)
Even without “branding” it and re-installing it clean I get
root@FiveM:~/server/bins # sh ./run.sh
ELF binary type "0" not known.
exec: /root/server/bins/alpine/opt/cfx-server/ld-musl-x86_64.so.1: Exec format error
./run.sh: line 8: /root/server/bins/alpine/opt/cfx-server/ld-musl-x86_64.so.1: cannot execute binary file: Exec format error
./run.sh: line 8: /root/server/bins/alpine/opt/cfx-server/ld-musl-x86_64.so.1: No error: 0
This issue is still on. I am not able as well to install the server on FreeBSD 12.0.
The problem seems to be musl who has no support for FreeBSD, and they also have no planning so far to port it (as they answered on musl irc official channel).