[postgis-users] [PostGIS] ERROR: could not load library "/usr/pgsql-9.1/lib/postgis-2.0.so"

Chris English sglish at hotmail.com
Tue Mar 13 10:01:55 PDT 2012



It may simply mean you  have to stop your pgsql-9.1  service and restart it or perhaps youneed to adjust permissions (chmod).
hthChris

> Date: Mon, 12 Mar 2012 15:32:39 -0700
> From: Edison.Tam at ngc.com
> To: postgis-users at postgis.refractions.net
> Subject: [postgis-users] [PostGIS] ERROR: could not load library "/usr/pgsql-9.1/lib/postgis-2.0.so"
> 
> Hi everyone,
> 
> I am trying to compile PostGIS 2.0 beta 2 on my linux machine.  Everything
> went well but when I try to create extension postgis, the following error
> shows up:
> 
> ERROR:  could not load library "/usr/pgsql-9.1/lib/postgis-2.0.so":
> libjson.so.0: cannot open shared object file: No such file or directory
> 
> the file postgis-2.0.so is certainly present under /usr/pgsql-9.1/lib/ but
> it is complaining.  Any idea why?
> 
> I have enclosed a scrip of what I did:
> 
> ##
> #Linux version
> ##
> #Compiling GEOS
> cd /var/lib/pgsql/required/geos
> bzip2 -d -c geos-3.3.2.tar.bz2 | tar xvf -
> cd geos-3.3.2
> ./configure --prefix=/var/lib/pgsql/required/geos/rel-3.3.2
> make
> make install
> 
> #--->Copy everything from /var/lib/pgsql/required/geos/rel-3.3.2 to
> /usr/pgsql-9.1
> 
> ##
> #Compiling Proj4
> cd /var/lib/pgsql/required/proj
> tar xvfz proj-4.7.0.tar.gz
> cd proj-2.7.0
> cd nad
> unzip ../../proj-datumgrid-1.5.zip
> cd ..
> ./configure --prefix=/usr/pgsql-9.1 --enable-shared --disable-static
> make
> make install
> 
> #export PROJSO=/usr/pgsql-9.1/lib/libproj.so
> 
> ##
> #Compiling LibXML2
> cd /var/lib/pgsql/required/libxml
> tar xvfz libxml2-2.7.8.tar.gz 
> cd libxml2-2.7.8
> ./configure --prefix=/var/lib/pgsql/required/libxml/rel-2.7.8
> --enable-shared
> make
> make install
> 
> #--->Copy everything from /var/lib/pgsql/required/libxml/rel-2.7.8 to
> /usr/pgsql-9.1
> 
> ##
> #Compiling GDAL
> cd /var/lib/pgsql/required/gdal
> tar xvfz gdal-1.9.0.tar.gz
> cd gdal-1.9.0
> ./configure --with-libtiff=internal
> --prefix=/var/lib/pgsql/required/gdal/rel-1.9.0
> make
> make install
> 
> #--->Copy everything from /var/lib/pgsql/required/gdal/rel-1.9.0 to
> /usr/pgsql-9.1
> 
> export LDFLAGS="-L/var/lib/pgsql/required/gdal/rel-1.9.0/lib"
> 
> ##
> #Compiling JSON-C
> cd /var/lib/pgsql/required/json-c
> tar xvfz json-c-0.9.tar.gz
> cd json-c-0.9
> ./configure --prefix=/var/lib/pgsql/required/json-c/rel-0.9
> make clean
> make
> make install
> 
> ##--->Copy everything from /var/lib/pgsql/required/json-c/rel-0.9 to
> /usr/pgsql-9.1
> 
> ##
> #Compiling PostGIS
> cd /var/lib/pgsql/postgis
> tar xvfz postgis-2.0.0beta2SVN.tar.gz
> cd postgis-2.0.0beta2SVN
>  ./configure \
> 	--prefix=/usr/pgsql-9.1/ \
> 	--with-xml2config=/var/lib/pgsql/required/libxml/rel-2.7.8/bin/xml2-config
> \
> 	--with-pgconfig=/usr/pgsql-9.1/bin/pg_config \
> 	--with-geosconfig=/var/lib/pgsql/required/geos/rel-3.3.2/bin/geos-config \
> 	--with-projdir=/usr/pgsql-9.1 \
> 	--with-gdalconfig=/var/lib/pgsql/required/gdal/rel-1.9.0/bin/gdal-config \
> 	--with-jsondir=/var/lib/pgsql/required/json-c/rel-0.9 \
> 	--with-gettext=no
> 
> make clean
> make
> make install
> 
> 
> -----
> Edison Tam
> NGC SWE
> US
> --
> 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
> Sent from the PostGIS - User mailing list archive at Nabble.com.
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120313/3fa28f26/attachment.html>


More information about the postgis-users mailing list