Skip to content

Instantly share code, notes, and snippets.

@vladimir-e
Created January 3, 2014 07:36
Show Gist options
  • Save vladimir-e/8234301 to your computer and use it in GitHub Desktop.
Save vladimir-e/8234301 to your computer and use it in GitHub Desktop.
Can't create postgis extension in postgres (geometry field)
postgres=# create extension if not exists postgis;
ERROR: could not load library "/usr/local/Cellar/postgresql/9.3.2/lib/rtpostgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.3.2/lib/rtpostgis-2.1.so, 10): Library not loaded: /usr/local/opt/sqlite/lib/libsqlite3.0.8.6.dylib
Referenced from: /usr/local/lib/libspatialite.5.dylib
Reason: image not found
# Solution is to create symlink to sqlite with "the right" name
ln -s /usr/local/opt/sqlite/lib/libsqlite3.0.dylib /usr/local/opt/sqlite/lib/libsqlite3.0.8.6.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment