Old libraries required by a binary program

From Elvanör's Technical Wiki
Revision as of 07:28, 13 July 2021 by Elvanor (talk | contribs) (Created page with "= Context = * Sometimes binary programs (especially games) will require different versions of libraries than the one installed on your Gentoo system. This will prevent the ap...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Context

  • Sometimes binary programs (especially games) will require different versions of libraries than the one installed on your Gentoo system. This will prevent the application from starting until you provide it with the expected library.

Using libraries installed by Steam

  • Steam installs a lot of those libraries (like libcurl-gnutls.so.4, libgcrypt.so.11, etc) into ~/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/ and other directories. The libraries seem to be taken from Ubuntu.
  • The easiest solution can be to use those libraries by changing the LD_LIBRARY_PATH variable like this:
LD_LIBRARY_PATH="/home/elvanor/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/" ./Civ6