[GH-ISSUE #433] [LGSM] Detect if missing dependencies and warn #357

Closed
opened 2026-02-27 02:01:03 +03:00 by kerem · 17 comments
Owner

Originally created by @DSDV on GitHub (Jun 25, 2015).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/433

Originally assigned to: @dgibbs64 on GitHub.

Hi,
i installe dGMod server today all worked fine i allowed ports and tried to join buit seteam dont sees the server.

after an hour i tried starting it via srcds_run and it puts out an error:
"error while loading shared libraries: libstdc++.so"
wich google says is fixed by:
"sudo apt-get install lib32stdc++6"

and all worked great again :D

so maybe the GSM should check the srcds if it puts out errors before saying all works [ok]
and while installing gmod check sudo apt-get install lib32stdc++6 ?

with best +DS_DV+

Originally created by @DSDV on GitHub (Jun 25, 2015). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/433 Originally assigned to: @dgibbs64 on GitHub. Hi, i installe dGMod server today all worked fine i allowed ports and tried to join buit seteam dont sees the server. after an hour i tried starting it via srcds_run and it puts out an error: "error while loading shared libraries: libstdc++.so" wich google says is fixed by: "sudo apt-get install lib32stdc++6" and all worked great again :D so maybe the GSM should check the srcds if it puts out errors before saying all works [ok] and while installing gmod check sudo apt-get install lib32stdc++6 ? with best +DS_DV+
kerem 2026-02-27 02:01:03 +03:00
  • closed this issue
  • added the
    type: bug
    label
Author
Owner

@dgibbs64 commented on GitHub (Jun 25, 2015):

The dependencies are listed in the instructions and the wiki.

http://gameservermanagers.com/lgsm/gmodserver/
https://github.com/dgibbs64/linuxgsm/wiki/Dependencies

There is also ./gmodserver debug that would of identified the issue.

There is also a hidden option that I have recently been working on.

./gmodserver depsdetect

that does something similar what you are suggesting. Once I am happy I will probably write it in to the script to warn admins of missing dependencies.

<!-- gh-comment-id:115284344 --> @dgibbs64 commented on GitHub (Jun 25, 2015): The dependencies are listed in the instructions and the wiki. http://gameservermanagers.com/lgsm/gmodserver/ https://github.com/dgibbs64/linuxgsm/wiki/Dependencies There is also ./gmodserver debug that would of identified the issue. There is also a hidden option that I have recently been working on. ./gmodserver depsdetect that does something similar what you are suggesting. Once I am happy I will probably write it in to the script to warn admins of missing dependencies.
Author
Owner

@dgibbs64 commented on GitHub (Jan 17, 2016):

I am developing this currently. My code works for Ubuntu however needs polish.

Currently is warns of a missing dependency. If the user has sudo it will install it for you.

There are some dependencies that are optional so I will need to deal with them differently.

<!-- gh-comment-id:172392924 --> @dgibbs64 commented on GitHub (Jan 17, 2016): I am developing this currently. My code works for Ubuntu however needs polish. Currently is warns of a missing dependency. If the user has sudo it will install it for you. There are some dependencies that are optional so I will need to deal with them differently.
Author
Owner

@UltimateByte commented on GitHub (Jan 17, 2016):

Speaking of that, most debian users don't have "sudo", as i recently learned the default behaviour is : If you have a root password set, sudo is disabled.
So maybe packages installation instructions should be modified accordingly.

<!-- gh-comment-id:172394813 --> @UltimateByte commented on GitHub (Jan 17, 2016): Speaking of that, most debian users don't have "sudo", as i recently learned the default behaviour is : If you have a root password set, sudo is disabled. So maybe packages installation instructions should be modified accordingly.
Author
Owner

@DSDV commented on GitHub (Jan 18, 2016):

I have ubuntu server running with sudo just fine :)
btw root should be disabled anyway ther is no need if you have an account wich hase rights to use sudo ;)

<!-- gh-comment-id:172522690 --> @DSDV commented on GitHub (Jan 18, 2016): I have ubuntu server running with sudo just fine :) btw root should be disabled anyway ther is no need if you have an account wich hase rights to use sudo ;)
Author
Owner

@jaredballou commented on GitHub (Jan 19, 2016):

The way I added it on my branch was to have a package_check_$OS_$ARCH variable that is a simple space-delimited string of package names. Checks the package database to see if they are installed, and reports back. I'm looking at adding per-game (or per-engine) additional prereqs, but it'll at least give a message with the command to paste to install the missing deps.

<!-- gh-comment-id:172970379 --> @jaredballou commented on GitHub (Jan 19, 2016): The way I added it on my branch was to have a package_check_$OS_$ARCH variable that is a simple space-delimited string of package names. Checks the package database to see if they are installed, and reports back. I'm looking at adding per-game (or per-engine) additional prereqs, but it'll at least give a message with the command to paste to install the missing deps.
Author
Owner

@dgibbs64 commented on GitHub (Feb 1, 2016):

Just released the feature to master. Please test and let me know. Works with Ubuntu Debian and CentOS. If yum or apt-get are not present then the check will be skipped.

<!-- gh-comment-id:178194213 --> @dgibbs64 commented on GitHub (Feb 1, 2016): Just released the feature to master. Please test and let me know. Works with Ubuntu Debian and CentOS. If yum or apt-get are not present then the check will be skipped.
Author
Owner

@ScottSmudger commented on GitHub (Feb 16, 2016):

Hey, just had a problem with this.

User I run csgo as does not have sudo access, but the dependencies are installed and the script is giving me the command for debian and not redhat/centos.

Message:
http://scottsmudger.co.uk/16-02-16_23-38-30.png

Dependencies:
http://scottsmudger.co.uk/16-02-16_23-42-47.png

<!-- gh-comment-id:184926017 --> @ScottSmudger commented on GitHub (Feb 16, 2016): Hey, just had a problem with this. User I run csgo as does not have sudo access, but the dependencies are installed and the script is giving me the command for debian and not redhat/centos. Message: http://scottsmudger.co.uk/16-02-16_23-38-30.png Dependencies: http://scottsmudger.co.uk/16-02-16_23-42-47.png
Author
Owner

@dgibbs64 commented on GitHub (Feb 17, 2016):

It checks if apt-get or yum is installed. For some reason it thinks apt-get is installed on your centos server. Can you confirm if apt-get is installed please

<!-- gh-comment-id:185061423 --> @dgibbs64 commented on GitHub (Feb 17, 2016): It checks if apt-get or yum is installed. For some reason it thinks apt-get is installed on your centos server. Can you confirm if apt-get is installed please
Author
Owner

@dgibbs64 commented on GitHub (Feb 17, 2016):

Correction if dpkg-query is present then the script assumes Ubuntu or Debian. I may have to add if yim not present as well

<!-- gh-comment-id:185228369 --> @dgibbs64 commented on GitHub (Feb 17, 2016): Correction if dpkg-query is present then the script assumes Ubuntu or Debian. I may have to add if yim not present as well
Author
Owner

@ScottSmudger commented on GitHub (Feb 17, 2016):

I can confirm it is not installed, as YUM would not be available. It isn't installed as a package anyway

sudo yum list installed | grep apt
Didn't return anything

<!-- gh-comment-id:185369208 --> @ScottSmudger commented on GitHub (Feb 17, 2016): I can confirm it is not installed, as YUM would not be available. It isn't installed as a package anyway `sudo yum list installed | grep apt` Didn't return anything
Author
Owner

@dgibbs64 commented on GitHub (Feb 17, 2016):

What is the output of:

command -v dpkg-query
<!-- gh-comment-id:185395812 --> @dgibbs64 commented on GitHub (Feb 17, 2016): What is the output of: ``` command -v dpkg-query ```
Author
Owner

@ScottSmudger commented on GitHub (Feb 18, 2016):

/usr/bin/dpkg-query

<!-- gh-comment-id:185765037 --> @ScottSmudger commented on GitHub (Feb 18, 2016): `/usr/bin/dpkg-query`
Author
Owner

@dgibbs64 commented on GitHub (Feb 18, 2016):

Please do the same but for apt-get as this should not be installed

<!-- gh-comment-id:185847091 --> @dgibbs64 commented on GitHub (Feb 18, 2016): Please do the same but for apt-get as this should not be installed
Author
Owner

@UltimateByte commented on GitHub (Feb 18, 2016):

@dgibbs64 While you're in there, check that out for mail server management !
github.com/dgibbs64/linuxgsm@64686921dd (diff-0d55734e68)

<!-- gh-comment-id:185939458 --> @UltimateByte commented on GitHub (Feb 18, 2016): @dgibbs64 While you're in there, check that out for mail server management ! https://github.com/dgibbs64/linuxgsm/commit/64686921ddc3239acb4eb992fb3c22dd03ee1fc0#diff-0d55734e68e0cd33f8b206a5f6d70686
Author
Owner

@ScottSmudger commented on GitHub (Feb 19, 2016):

command -v apt-get

Doesn't return anything

<!-- gh-comment-id:186001812 --> @ScottSmudger commented on GitHub (Feb 19, 2016): `command -v apt-get` Doesn't return anything
Author
Owner

@dgibbs64 commented on GitHub (May 13, 2016):

I am closing this issue as I believe this feature is now stable. However please advise if there are still issues

<!-- gh-comment-id:219122465 --> @dgibbs64 commented on GitHub (May 13, 2016): I am closing this issue as I believe this feature is now stable. However please advise if there are still issues
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 2018):

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:406255301 --> @lock[bot] commented on GitHub (Jul 19, 2018): This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#357
No description provided.