Premek
Premek

Reputation: 93

Error adding PostGIS extension to PostgreSQL - Win10

When using CREATE EXTENSION postgis; I get the following error message:

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

I Tried to create the extension both from pgAdmin 4 context-menu and SQL command as well as command-line via psql.

Upvotes: 0

Views: 3149

Answers (2)

Arctic
Arctic

Reputation: 827

I faced same issue and it turned out to be postgis version issue.

Upvotes: 0

Cptn. Nemo
Cptn. Nemo

Reputation: 16

as per https://trac.osgeo.org/postgis/ticket/4482 - followed the procedure and it fixed the problem (for me).

  • go to your PostgreSQL /postgisgui folder - in my case "C:\Program Files\PostgreSQL\11\bin\postgisgui"
  • manually copy "libeay32.dll" and "ssleay32.dll"
  • paste into the parent "bin" folder

When restarted pgAdmin, was able to create the postgis extension on selected database.

Upvotes: 0

Related Questions