title: libSDL2-2.0.so.0: cannot open shared object file
body: <p>I'm trying to build the SDL library from the  <a href="http://www.libsdl.org/download-2.0.php" rel="noreferrer">source code</a>. I've downloaded the compressed file (i.e. <code>SDL2-2.0.3.tar.gz</code>) and extracted it. I don't want to install the files in <code>/usr/local</code>. According to <a href="https://wiki.libsdl.org/Installation" rel="noreferrer">this link</a>, I need to change the <code>configure</code> </p>
  
  <blockquote>
    <p>The last command says "sudo" so we can write it to /usr/local (by
    default). You can change this to a different location with the
    --prefix option to the configure script. In fact, there are a LOT of good options you can use with configure! Be sure to check out its
    --help option for details.</p>
  </blockquote>
  
  <p>This is what I've done. </p>
  
  <pre><code>mkdir build
  cd build
  ../configure
  make
  sudo make install
  </code></pre>
  
  <p>In <code>install</code> folder that I've created are the following files </p>
  
  <pre><code>share 
  lib
  include 
  bin
  </code></pre>
  
  <p>Now I would like to run the test files. I've picked this <code>testatomic.c</code> and this is the command line 
  <code>gcc testatomic.c -o test -I/home/xxxx/Desktop/SDL2-2.0.3/install/include/SDL2 -L/home/xxxx/Desktop/SDL2-2.0.3/install/lib -lSDL2 -lSDL2main</code></p>
  
  <p>I get this error </p>
  
  <p><code>error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory</code></p>
  
  <p>In <code>lib</code>, these are the files </p>
  
  <p><img src="https://i.stack.imgur.com/Wxqom.png" alt="enter image description here"></p>
  
  <p>Where is the shared object file?</p>