ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.25k stars 175 forks source link

Steam won't start until I specify nvidia libraries in LD_LIBRARY_PATH #3830

Open gbitzes opened 9 years ago

gbitzes commented 9 years ago

Hi, I have had various problems with steam not being able to start due to missing libraries, and I've found the solution is to run it like this:

LD_LIBRARY_PATH="/usr/lib32/nvidia-349" steam

(Obviously, you'd need to change 349 to your corresponding driver version) I'm running Ubuntu 15.04, and I've installed nvidia-349 through xorg-edgers. If I don't specify the library path, steam fails to start with the following message:

$ steam                                                                                                                                                          
Running Steam on ubuntu 15.04 64-bit
STEAM_RUNTIME is enabled automatically
[2015-05-02 09:02:41] Startup - updater built Apr 13 2015 15:17:10
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)

During some of my many attempts to get it to run, I was also getting strange messages about sw_rast.so failing to load, but now something changed and the message became An X Error occurred. I'm not sure what..

This is not a pressing issue for me, as I can now play my games, but I thought you should be aware.

reavertm commented 8 years ago

@gdrewb-valve The problem is that Steam adds /usr/lib32 to LD_LIBRARY_PATH instead of relying on LDPATH settings provided by distro maintainers.

See https://bugs.gentoo.org/show_bug.cgi?id=567200

Other related problems with spurious LD_LIBRARY_PATH: https://github.com/ValveSoftware/steam-for-linux/issues/3907 https://github.com/ValveSoftware/steam-for-linux/issues/3851 https://github.com/ValveSoftware/steam-for-linux/issues/3624

Please do not add distro-specific hacks to make it work, Steam launcher script should override only minimum that is required to run the client.

reavertm commented 8 years ago

Or if Ubuntu needs some LD_LIBRARY_PATH hacks, please move those hacks to primary steam script that is installed in /usr/bin/ so that it can be removed by other distro providers, but for the love of God please remove them from steam.sh that is checksum-verified and restored when altered.