Problem:
postgres=# CREATE EXTENSION postgis;
LOG: statement: CREATE EXTENSION postgis;
ERROR: could not load library "/usr/lib/postgresql/9.5/lib/rtpostgis-2.3.so": /usr/lib/libgdal.so.1: undefined symbol: sqlite3_column_table_name`
What I've done:
- Added Postgres official PPA -
http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main
- Installed Postgis -
sudo apt-get install postgresql-9.5-postgis-2.3
- I've also uninstalled
libgdal
and it's dependencies (sudo apt-get remove --purge libgdal1i
) and then reinstalledpostgis
as above. Still same error. - I installed clean Ubuntu in a VirtualBox and there it installed and worked ok.
Versions:
- Ubuntu - Ubuntu 16.04.3 LTS
- Postgres - 9.5.9-1.pgdg16.04+1
- Postgis - 2.3.3+dfsg-1.pgdg16.04+1
- Libgdal - 1.11.3+dfsg-3build2 (libgdal1i)
I'm all out if ideas how to debug this further.