Opened 10 years ago

Closed 10 years ago

#1868 closed defect (fixed)

Documentation Error

Reported by: hughpearse Owned by: pramsey
Priority: high Milestone: PostGIS 2.0.1
Component: postgis Version: 2.0.x
Keywords: documentation ldconfig Cc: Sandro Santilli <strk@…>; Paul Ramsey <pramsey@…>; Frank Warmerdam <warmerdam@…>; Mateusz Loskot <mateusz@…>; Regina Obe <lr@…>; Mark Cave-Ayland <mark.cave-ayland@…>; Olivier Courtin <olivier.courtin@…>; Kevin Neufeld <…>; Chris Hodgson <chodgson@…>; Mark Leslie <mark.leslie@…>; Nicklas Avén <nicklas.aven@…>; Pierre Racine <Pierre.Racine@…>; Jorge Arévalo <jorge.arevalo at>; Bborie Park <bkpark at>; David Zwarg <dzwarg@…>


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/" 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/": 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/ sudo echo '/usr/lib' >> /etc/ sudo echo '/usr/lib64' >> /etc/ sudo ldconfig


Attachments (1)

installing-postgres-and-postGIS.txt (3.1 KB ) - added by hughpearse 10 years ago.
home made documentation for installing PostGIS

Download all attachments as: .zip

Change History (3)

by hughpearse, 10 years ago

home made documentation for installing PostGIS

comment:1 by robe, 10 years ago


This really doesn't belong in the core documentation as it is different for each OS. For OS specific installations, please put them here:

I'll verify to make sure we have that page linked in the documentation.

comment:2 by robe, 10 years ago

Resolution: fixed
Status: newclosed

linked in docs at (2.1) 9920 and (2.0 ) r9921.

Also amended the dev links to point to user area until we get a bit more organized.

Note: See TracTickets for help on using tickets.