8👍
✅
Running Arch Linux, Rails 5.2, PostgreSQL 10.5, Postgis 2.4.4-4. Ran a system update today (October 1, 2018) and related Postgis libraries were updated, i.e. postgis, gdal, geos and proj. Immediately encountered the same error when trying to query my postgis enabled database: could not access file "$libdir/postgis-2.4"
Solution was to simply open a psql
console and update the postgis
extension.
psql -d <name_of_database>
ALTER EXTENSION postgis UPDATE;
Source:stackexchange.com