<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>

It may simply mean you  have to stop your pgsql-9.1  service and restart it or perhaps you<div>need to adjust permissions (chmod).</div><div><br></div><div>hth</div><div>Chris<br><br><div><div id="ecxSkyDrivePlaceholder"></div>> Date: Mon, 12 Mar 2012 15:32:39 -0700<br>> From: Edison.Tam@ngc.com<br>> To: postgis-users@postgis.refractions.net<br>> Subject: [postgis-users] [PostGIS] ERROR: could not load library "/usr/pgsql-9.1/lib/postgis-2.0.so"<br>> <br>> Hi everyone,<br>> <br>> I am trying to compile PostGIS 2.0 beta 2 on my linux machine.  Everything<br>> went well but when I try to create extension postgis, the following error<br>> shows up:<br>> <br>> ERROR:  could not load library "/usr/pgsql-9.1/lib/postgis-2.0.so":<br>> libjson.so.0: cannot open shared object file: No such file or directory<br>> <br>> the file postgis-2.0.so is certainly present under /usr/pgsql-9.1/lib/ but<br>> it is complaining.  Any idea why?<br>> <br>> I have enclosed a scrip of what I did:<br>> <br>> ##<br>> #Linux version<br>> ##<br>> #Compiling GEOS<br>> cd /var/lib/pgsql/required/geos<br>> bzip2 -d -c geos-3.3.2.tar.bz2 | tar xvf -<br>> cd geos-3.3.2<br>> ./configure --prefix=/var/lib/pgsql/required/geos/rel-3.3.2<br>> make<br>> make install<br>> <br>> #--->Copy everything from /var/lib/pgsql/required/geos/rel-3.3.2 to<br>> /usr/pgsql-9.1<br>> <br>> ##<br>> #Compiling Proj4<br>> cd /var/lib/pgsql/required/proj<br>> tar xvfz proj-4.7.0.tar.gz<br>> cd proj-2.7.0<br>> cd nad<br>> unzip ../../proj-datumgrid-1.5.zip<br>> cd ..<br>> ./configure --prefix=/usr/pgsql-9.1 --enable-shared --disable-static<br>> make<br>> make install<br>> <br>> #export PROJSO=/usr/pgsql-9.1/lib/libproj.so<br>> <br>> ##<br>> #Compiling LibXML2<br>> cd /var/lib/pgsql/required/libxml<br>> tar xvfz libxml2-2.7.8.tar.gz <br>> cd libxml2-2.7.8<br>> ./configure --prefix=/var/lib/pgsql/required/libxml/rel-2.7.8<br>> --enable-shared<br>> make<br>> make install<br>> <br>> #--->Copy everything from /var/lib/pgsql/required/libxml/rel-2.7.8 to<br>> /usr/pgsql-9.1<br>> <br>> ##<br>> #Compiling GDAL<br>> cd /var/lib/pgsql/required/gdal<br>> tar xvfz gdal-1.9.0.tar.gz<br>> cd gdal-1.9.0<br>> ./configure --with-libtiff=internal<br>> --prefix=/var/lib/pgsql/required/gdal/rel-1.9.0<br>> make<br>> make install<br>> <br>> #--->Copy everything from /var/lib/pgsql/required/gdal/rel-1.9.0 to<br>> /usr/pgsql-9.1<br>> <br>> export LDFLAGS="-L/var/lib/pgsql/required/gdal/rel-1.9.0/lib"<br>> <br>> ##<br>> #Compiling JSON-C<br>> cd /var/lib/pgsql/required/json-c<br>> tar xvfz json-c-0.9.tar.gz<br>> cd json-c-0.9<br>> ./configure --prefix=/var/lib/pgsql/required/json-c/rel-0.9<br>> make clean<br>> make<br>> make install<br>> <br>> ##--->Copy everything from /var/lib/pgsql/required/json-c/rel-0.9 to<br>> /usr/pgsql-9.1<br>> <br>> ##<br>> #Compiling PostGIS<br>> cd /var/lib/pgsql/postgis<br>> tar xvfz postgis-2.0.0beta2SVN.tar.gz<br>> cd postgis-2.0.0beta2SVN<br>>  ./configure \<br>>   --prefix=/usr/pgsql-9.1/ \<br>>        --with-xml2config=/var/lib/pgsql/required/libxml/rel-2.7.8/bin/xml2-config<br>> \<br>>        --with-pgconfig=/usr/pgsql-9.1/bin/pg_config \<br>>    --with-geosconfig=/var/lib/pgsql/required/geos/rel-3.3.2/bin/geos-config \<br>>        --with-projdir=/usr/pgsql-9.1 \<br>>   --with-gdalconfig=/var/lib/pgsql/required/gdal/rel-1.9.0/bin/gdal-config \<br>>        --with-jsondir=/var/lib/pgsql/required/json-c/rel-0.9 \<br>>   --with-gettext=no<br>> <br>> make clean<br>> make<br>> make install<br>> <br>> <br>> -----<br>> Edison Tam<br>> NGC SWE<br>> US<br>> --<br>> View this message in context: http://postgis.17.n6.nabble.com/PostGIS-ERROR-could-not-load-library-usr-pgsql-9-1-lib-postgis-2-0-so-tp4571978p4571978.html<br>> Sent from the PostGIS - User mailing list archive at Nabble.com.<br>> _______________________________________________<br>> postgis-users mailing list<br>> postgis-users@postgis.refractions.net<br>> http://postgis.refractions.net/mailman/listinfo/postgis-users<br></div></div>                                       </div></body>
</html>