我正在尝试根据GeoDjango docs为Postgres安装PostGIS和空间库。安装后,我尝试为数据库创建PostGIS扩展,但出现以下错误
psql postgistest -c 'create extension postgis;'
ERROR: could not load library "/usr/local/lib/postgresql/rtpostgis- 2.4.so":
dlopen(/usr/local/lib/postgresql/rtpostgis-2.4.so, 10):
Library not loaded: /usr/local/opt/libtiff/lib/libtiff.5.dylib
Referenced from: /usr/local/opt/gdal/lib/libgdal.20.dylib
Reason: image not found
其他库也有类似的问题,但对我来说没有用。我遵循了此solution,但对我而言无效。我还尝试过重新安装所有地理空间库,Postgres,postgis,并尝试了brew更新,但是没有任何效果。