Skip to content
Permalink
Browse files

fix(fix): fix sof2 LD_LIBRARY_PATH and standardise usage (#2731)

  • Loading branch information
dgibbs64 committed Mar 11, 2020
1 parent 8740b34 commit 8a29dcc7aa6ecf8477406d0d0c61f0d15aa18a90
@@ -9,7 +9,7 @@ local commandaction="Fix"

# Fixes: ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory.

export LD_LIBRARY_PATH=${serverfiles}:${serverfiles}/bin:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/bin"

# Fixes: issue #529 - gamemode not passed to debug or start.

@@ -8,4 +8,4 @@ local modulename="FIX"
local commandaction="Fix"

# official docs state that the server should be started with: LD_LIBRARY_PATH=. ./bedrock_server
export LD_LIBRARY_PATH="${serverfiles}:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"
@@ -8,7 +8,7 @@ local modulename="FIX"
local commandaction="Fix"
local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")

export LD_LIBRARY_PATH="${serverfiles}:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"

# Fixes: Failed loading "mariadb": libmariadbclient.so.18: cannot open shared object file: No such file or directory
# Issue only occures on CentOS as libmariadbclient.so.18 is called libmariadb.so.3 on CentOS.
@@ -7,4 +7,4 @@
local modulename="FIX"
local commandaction="Fix"

export LD_LIBRARY_PATH="${serverfiles}/linux64:${serverfiles}:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"
@@ -7,4 +7,4 @@
local modulename="FIX"
local commandaction="Fix"

export LD_LIBRARY_PATH="${serverfiles}"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"
@@ -8,4 +8,4 @@ local modulename="FIX"
local commandaction="Fix"

# Fixes: error while loading shared libraries: libcxa.so.1
export LD_LIBRARY_PATH=":$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"
@@ -8,4 +8,4 @@ local modulename="FIX"
local commandaction="Fix"

# steamclient.so: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH="${serverfiles}/linux64:${serverfiles}:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"

0 comments on commit 8a29dcc

Please sign in to comment.
You can’t perform that action at this time.