0

使用时CREATE EXTENSION postgis;出现以下错误消息:

ERROR:  could not load library "C:/Program Files/PostgreSQL/11/lib/rtpostgis-2.5.dll": The specified module could not be found. SQL state: XX000
  • 系统:Windows 10-64 位家庭版。
  • 从“postgresql-11.5-1-windows-x64.exe”安装的 Postgre SQL。
  • 从“postgis-bundle-pg11x64-setup-2.5.2-1.exe”安装的 Postgis(也尝试了 2.5.1-1 版)。我是通过 Application Stack Builder 还是直接使用安装程序安装 PostGIS 都没有关系。

我尝试从 pgAdmin 4 上下文菜单和 SQL 命令以及通过 psql 的命令行创建扩展。

4

1 回答 1

0

根据https://trac.osgeo.org/postgis/ticket/4482 - 遵循程序并解决了问题(对我而言)。

  • 转到您的 PostgreSQL /postgisgui 文件夹 - 在我的情况下为“C:\Program Files\PostgreSQL\11\bin\postgisgui”
  • 手动复制“libeay32.dll”和“ssleay32.dll”
  • 粘贴到父“bin”文件夹中

重新启动 pgAdmin 时,能够在选定的数据库上创建 postgis 扩展。

于 2019-08-15T22:44:01.103 回答