title: Unable to load shared library 'libsteam_api' with Facepunch Steamworks on linux
body: <p>I am trying to deploy a small Steamworks program to my server, however, when I try to build it for Linux I encounter <code>Unable to load shared library 'libsteam_api'</code>. I have included the <code>libsteam_api.so</code> file in the output directory <code>bin/Debug/net5.0</code> and linked it in my csproj</p>
  <pre><code>&lt;Content Include=&quot;.\lib\libsteam_api.so&quot;&gt;
     &lt;Link&gt;libsteam_api.so&lt;/Link&gt;
     &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt;
  &lt;/Content&gt;
  </code></pre>
  <p>Additionally while researching this issue I learned that a fix could be to put the libsteam_api file in <code>/usr/lib</code> however, this did not solve the issue for me. I am using C# net5.0, and the <code>Posix</code> version of Facepunch.Steamworks on Ubuntu.</p>
  <p>The error message includes that I could try setting <code>LD_DEBUG</code>, however, the output after doing this contains no useful information.</p>
  <pre><code>     16545:     find library=libsteam_api.so [0]; searching
       16545:      search cache=/etc/ld.so.cache
       16545:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
       16545:       trying file=/lib/x86_64-linux-gnu/libsteam_api.so
       16545:       trying file=/usr/lib/x86_64-linux-gnu/libsteam_api.so
       16545:       trying file=/lib/libsteam_api.so
       16545:       trying file=/usr/lib/libsteam_api.so
       16545:
       16545:     find library=liblibsteam_api.so [0]; searching
       16545:      search cache=/etc/ld.so.cache
       16545:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
       16545:       trying file=/lib/x86_64-linux-gnu/liblibsteam_api.so
       16545:       trying file=/usr/lib/x86_64-linux-gnu/liblibsteam_api.so
       16545:       trying file=/lib/liblibsteam_api.so
       16545:       trying file=/usr/lib/liblibsteam_api.so
       16545:
       16545:     find library=libsteam_api [0]; searching
       16545:      search cache=/etc/ld.so.cache
       16545:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
       16545:       trying file=/lib/x86_64-linux-gnu/libsteam_api
       16545:       trying file=/usr/lib/x86_64-linux-gnu/libsteam_api
       16545:       trying file=/lib/libsteam_api
       16545:       trying file=/usr/lib/libsteam_api
       16545:
       16545:     find library=liblibsteam_api [0]; searching
       16545:      search cache=/etc/ld.so.cache
       16545:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
       16545:       trying file=/lib/x86_64-linux-gnu/liblibsteam_api
       16545:       trying file=/usr/lib/x86_64-linux-gnu/liblibsteam_api
       16545:       trying file=/lib/liblibsteam_api
       16545:       trying file=/usr/lib/liblibsteam_api
  </code></pre>