[postgis-devel] Problems compiling PostGIS under MinGW

Jorge Arévalo jorge.arevalo at deimos-space.com
Thu May 27 08:37:41 PDT 2010


On Thu, May 27, 2010 at 5:08 PM, Mark Cave-Ayland
<mark.cave-ayland at siriusit.co.uk> wrote:
> Jorge Arévalo wrote:
>
>> Hi,
>>
>> I'm compiling PostGIS and all needed stuff in MinGW following this:
>> http://trac.osgeo.org/postgis/wiki/UsersWikiWinCompile (BTW, I've made
>> two little changes in this wiki page).
>>
>> My problem is starting postgreSQL server. If I execute:
>>
>> /c/postgres/bin/pg_ctl.exe -D /c/postgres/data -l logfile start
>>
>> I get the error message:
>>
>> This application has failed to start because libpq.dll was not found.
>> Re-installing the application may fix this problem mingw
>>
>> The dll file is in its place (/c/postgres/lib), and I've compiled
>> everthing, several times. I can't provide a log file because is not
>> generated
>>
>> Any clues? Regina, I think you provide PostGIS Windows builds, what
>> enviroment are you using?
>
> Hmmmm I seem to remember in some cases I had to copy libpq.dll from
> postgres/lib to postgres/bin due to the way in which PATH is set on Windows.
> Does that help at all?
>
>
> ATB,
>
> Mark.
>
Hi,

I re-compiled postgresql, setting LD_RUN_PATH to /c/postgres/lib
before, and then copied libpq.dll to /c/postgres/bin, as you said.
Seems to work :-)

Many thanks!

Best regards,
Jorge


> --
> Mark Cave-Ayland - Senior Technical Architect
> PostgreSQL - PostGIS
> Sirius Corporation plc - control through freedom
> http://www.siriusit.co.uk
> t: +44 870 608 0063
>
> Sirius Labs: http://www.siriusit.co.uk/labs
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



-- 
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)
Tel: +34 91 806 34 50 - ext: 155
jorge.arevalo at deimos-space.com



More information about the postgis-devel mailing list