title: error while loading shared libraries: libgdal.so.1 in archlinux
body: <p>I (myself a programm novice) get the following error message when starting a script in archlinux, which has been written by a friend:</p>
  
  <pre><code>/usr/bin/psxy: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
  /usr/bin/psbasemap: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
  /usr/bin/ps2raster: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
  /usr/bin/psxy: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>At that point in the script it uses the <a href="http://gmt.soest.hawaii.edu/" rel="noreferrer">Generic Mapping Tools</a> (GMT). I think the problem is a linker problem and related to <code>gdal</code>. The version installed is:</p>
  
  <pre><code>gdalinfo --version
  GDAL 2.0.0, released 2015/06/14
  </code></pre>
  
  <p>And, indeed, <code>libgdal.so.1</code> is not installed (or has been renamed to <code>/usr/lib/libgdal.so</code>?):</p>
  
  <pre><code>/sbin/ldconfig -p | grep gdal
      libgdal.so.20 (libc6,x86-64) =&gt; /usr/lib/libgdal.so.20
      libgdal.so (libc6,x86-64) =&gt; /usr/lib/libgdal.so
  </code></pre>
  
  <p>But when I want to install <code>gdal1</code>, then it comes to a conflict with the already installed <code>gdal</code> (which I presume is 2.0).</p>
  
  <p>What can I do? Do I have to edit the script and if so, where, to make it use of gdal?</p>
  
  <p><strong>Edit:</strong>
  I enter <code>LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib</code> before executing the script with the same error message as above.</p>
  
  <p>I have, then, tried to edit the <code>ldconfig</code> file by <code>locate libgdal</code>:</p>
  
  <pre><code>/usr/lib/libgdal.so
  /usr/lib/libgdal.so.20
  /usr/lib/libgdal.so.20.0.0
  
  nano /etc/ld.so.conf -&gt; adding /usr/lib/
  </code></pre>
  
  <p>But <code>/sbin/ldconfig -p | grep gdal</code> still shows:</p>
  
  <pre><code>libgdal.so.20 (libc6,x86-64) =&gt; /usr/lib/libgdal.so.20
  libgdal.so (libc6,x86-64) =&gt; /usr/lib/libgdal.so
  </code></pre>