Old libraries required by a binary program: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 07:28, 13 July 2021

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