【问题标题】:Error adding PostGIS extension to PostgreSQL - Win10将 PostGIS 扩展添加到 PostgreSQL 时出错 - Win10
【发布时间】:2019-12-21 22:38:06
【问题描述】:

使用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-64bit Home。
  • 从“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 的命令行创建扩展。

【问题讨论】:

    标签: windows postgresql postgis-installation


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-08
      • 2014-09-18
      • 2019-06-02
      • 2015-02-07
      • 1970-01-01
      • 2022-10-13
      • 2021-03-16
      • 1970-01-01
      相关资源
      最近更新 更多