id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 1868,Documentation Error,hughpearse,pramsey,"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",defect,closed,high,PostGIS 2.0.1,postgis,2.0.x,fixed,documentation ldconfig ld.so.conf libjson.so.0,Sandro Santilli Paul Ramsey Frank Warmerdam Mateusz Loskot Regina Obe Mark Cave-Ayland Olivier Courtin Kevin Neufeld Chris Hodgson Mark Leslie Nicklas Avén Pierre Racine Jorge Arévalo Bborie Park David Zwarg