[postgis-devel] [PostGIS] #1868: Documentation Error
PostGIS
trac at osgeo.org
Fri Jun 15 01:17:52 PDT 2012
#1868: Documentation Error
------------------------------------------------------------+---------------
Reporter: hughpearse | Owner: pramsey
Type: defect | Status: new
Priority: high | Milestone: PostGIS 2.0.1
Component: postgis | Version: 2.0.x
Keywords: documentation ldconfig ld.so.conf libjson.so.0 |
------------------------------------------------------------+---------------
There is an error in the documentation for compiling PostGIS from sources
and its dependencies (Proj4, GEOS, LibXML2, JSON-C, GDAL).
The nature of the bug it is not documented that people must manually add
their library folders to "/etc/ld.so.conf" and then execute "sudo
ldconfig" otherwise PostGIS will cause an error when the functions are
being installed to a database by executing "psql -d geocoder -f
postgis.sql".
The error encountered is:
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
For my machine the solution was to execute the following commands after
installing the dependencies but before installing PostGIS:
sudo echo '/usr/local/lib' >> /etc/ld.so.conf
sudo echo '/usr/lib' >> /etc/ld.so.conf
sudo echo '/usr/lib64' >> /etc/ld.so.conf
sudo ldconfig
Source:
http://postgis.17.n6.nabble.com/PostGIS-ERROR-could-not-load-library-quot-
usr-pgsql-9-1-lib-postgis-2-0-so-quot-td4571978.html
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1868>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list