[GIS] Install PostGIS 2.0.3 on PostgreSQL x64 9.1 on Windows Server 2008 R2

postgis

I just try to install the PostGIS 2.0.3 on PostgreSQL x64 9.1 on the Windows Server 2008 R2. I got the error message "Error openning file for writing" C:\Program Files\PostgreSQL\9.1\bin\libiconv-2.dll. Should I click "Abort", "Retry" or "Ignore"? Thanks. 🙂

Best Answer

You cannot overwrite libiconv-2.dll because it has been locked by postgres.exe. So, first you must stop the postgresql-9.1 service from your control panel/administrative tools/services. Second, restart the PostgreSQL service, rename libiconv-2.dll to libiconv-2.old and then proceed the PostGIS installation.