Running a Debian server.

Hello.
I have been trying to run a Garry’s Mod dedicated server on my Debian VPS, for testing, and I’ve encountered these errors:



Using default binary: ./srcds_linux
Enabling debug mode
./srcds_run: 1: ./srcds_run: gdb: not found
WARNING: Please install gdb first.
        goto http://www.gnu.org/software/gdb/
Server will auto-restart if there is a crash.

Console initialized.
Couldn't load shader dll: game_shader_generic_garrysmod_srv.soConVarRef mat_dxlevel doesn't point to an existing ConVar
Game_srv.so loaded for "Garry's Mod"
Setting breakpad minidump AppID = 4000
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
/root/.steam/sdk32/libsteam.so
with error:
/root/.steam/sdk32/libsteam.so: cannot open shared object file: No such file or directory
Logging into anonymous gameserver account.
Fetching Workshop Addons.. No -authkey
dlopen failed trying to load:
/root/.steam/sdk32/libsteam.so
with error:
/root/.steam/sdk32/libsteam.so: cannot open shared object file: No such file or directory
dlopen failed trying to load:
/root/.steam/sdk32/libsteam.so
with error:
/root/.steam/sdk32/libsteam.so: cannot open shared object file: No such file or directory
dlopen failed trying to load:
/root/.steam/sdk32/libsteam.so
with error:
/root/.steam/sdk32/libsteam.so: cannot open shared object file: No such file or directory
Unknown command "cl_cmdrate"
Unknown command "cl_updaterate"
Unknown command "rate"
WARNING: Port 27015 was unavailable - bound to port 27016 instead
WARNING: Port 27005 was unavailable - bound to port 27006 instead
WARNING: Port 27020 was unavailable - bound to port 27021 instead
Network: IP 151.80.142.233, mode MP, dedicated Yes, ports 27016 SV / 27006 CL
Error loading cfg/trusted_keys_base.txt
Error loading cfg/pure_server_minimal.txt
PREP OK
Lua JIT is DISABLED!
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Map cycle file 'cfg/mapcycle.txt' was not found.
Nav File is wrong or something (4)
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
/root/.steam/sdk32/libsteam.so
with error:
/root/.steam/sdk32/libsteam.so: cannot open shared object file: No such file or directory


I am not such a genious regarding to linux, so i was wondering how would i be able to install gdb.
And if the errors below has anything to do with it?

2 issues

you’re running it with root permissions so it’s trying to find steamsdk under root but it won’t find it hence those errors

also 27015 is populated by another server so unless you’re ok with this you may need to check your port forwarding

if you weren’t running the server with root permissions then it should load just fine

just take out sudo in your start paramaters

Does it matter if i run it from root or not?

allright :stuck_out_tongue:
Thanks ^^.