PDA

View Full Version : trying to buid gmod server, getting a weird error


goodBEan
04-10-2016, 22:15
I am trying to build a gmod server on a ubuntu server, and I am currently am getting this error when I try to launch.

Failed to open dedicated_srv.so (dedicated_srv.so: cannot open shared object file: No such file or directory)I have looked in all usual places and the file is there I just have no idea what is going on. I also as a test I was able to run a tf2 server on the same machine with no problems.


-----------------------

Here are the scripts I am running.

sudo apt-get install -y curl git libc6-i386 lib32gcc1 lib32stdc++6 lib32tinfo5 lib32z1 tar wget libssl1.0.0:i386
mkdir -p /home/bean/gameserver/util/steamcmd/
cd /home/bean/gameserver/util/steamcmd/
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz


/home/bean/gameserver/util/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/bean/gameserver/ +app_update 4020 +quit -validate

/home/bean/gameserver/srcds_linux -game garrysmod +maxplayers 32 +map gm_construct

Neuro Toxin
04-11-2016, 05:33
I dont use linux. However: most of these types of posts relate to file permission errors.

Maxximou5
04-11-2016, 05:48
http://danielgibbs.co.uk/2014/08/garrys-mod-linux-server-glibc_2-15/

goodBEan
04-11-2016, 19:36
http://danielgibbs.co.uk/2014/08/garrys-mod-linux-server-glibc_2-15/
Nope didn't work.

micazoid
04-12-2016, 01:56
Since you do sudo in your first script I assume you havent chowned the serverfiles to the user you are trying to run your server with.

For testing (AND ONLY FOR THAT) you can try to run the startline as root (sudo) or just write

chown -R -v user:usergroup ServerFolder

Powerlord
04-12-2016, 17:40
Since you do sudo in your first script I assume you havent chowned the serverfiles to the user you are trying to run your server with.

sudo only applies to the command on the same line as it, which in this case is using apt-get to install a bunch of 32-bit libraries that Valve games need to run correctly.

asherkin
04-13-2016, 04:32
You need to run srcds_run, not srcds_linux.

goodBEan
04-13-2016, 21:15
You need to run srcds_run, not srcds_linux.
That did it. THANK YOU. I also feel a bit dumb for this mistake.

Triniayo
04-13-2016, 21:41
That did it. THANK YOU. I also feel a bit dumb for this mistake.

Mistakes can happen! ;) Don't worry, we all do them. :D