title: Error when installing postgis extension to postgresql database
body: <p>Im having problem installing postgis to an existing database.
  but getting error like this:</p>
  
  <pre><code>ERROR:  could not load library "/usr/local/pgsql/lib/postgis-2.0.so": libgeos_c.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>the postgis-2.0.so is in <code>/usr/local/pgsql/lib/postgis-2.0.so</code> no problem. the <code>libgeos_c.so.1</code> is installed in <code>/usr/local/lib</code>.</p>
  
  <p>So, what is the problem here?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks.</p>
  
  <p>BTW, I installed all these followed by this tutorial:</p>
  
  <p><a href="http://www.codingsteps.com/installing-and-configuring-postgresql-in-amazon-linux-ami/" rel="nofollow">http://www.codingsteps.com/installing-and-configuring-postgresql-in-amazon-linux-ami/</a>  </p>
  
  <p>update</p>
  
  <pre><code>$ ldd /usr/local/lib/libgeos_c.so.1
  linux-vdso.so.1 =&gt;  (0x00007fff6f55b000)
  libgeos-3.3.7.so =&gt; /usr/local/lib/libgeos-3.3.7.so (0x00007f53700d9000)
  libstdc++.so.6 =&gt; /usr/lib64/libstdc++.so.6 (0x00007f536fdd0000)
  libm.so.6 =&gt; /lib64/libm.so.6 (0x00007f536fb4c000)
  libc.so.6 =&gt; /lib64/libc.so.6 (0x00007f536f7c0000)
  libgcc_s.so.1 =&gt; /lib64/libgcc_s.so.1 (0x00007f536f5ab000)
  /lib64/ld-linux-x86-64.so.2 (0x00007f537068d000)
  </code></pre>