Full-stack web applications developer

Problems with PostgreSQL and PostGIS: could not load library

December 31, 2018Arthur Pemberton0 Comments

Today, on a production system errors started arising from a Django based application that made use of PostGIS features. All SQL queries that included any geo data were failing. This was on PostgreSQL 9.6 on Centos 7.

could not load library "/usr/pgsql-9.6/lib/": /usr/pgsql-9.6/lib/ undefined symbol: GEOSFrechetDistanceDensify

This error was being reported at a self.cursor.execute, but it was not clear that it was a local or remote error.

The error was eventually traced to automatic package upgrades on the database server itself — generally not a good idea, but this had gone unnoticed. Yum-cron had installed geos37 as part of an update to postgis24_96. however was still linking to the older instead of

The solution turned out to be as simple as yum remove geos36.

Leave a Reply