<raj.indian.08 <at> gmail.com> writes:

>     I am trying to install psycopg2 in my windows machine for
> connecting with the PostgreSQL server.
>     Since there is no binary executable*, I  am trying to build my own
> - and I am facing this issue.
> 
> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lpq
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
> 
>      After a little bit of googling, I found that this can be solved
> by -L<directory name> while linking - but I am not specifically
> linking the code. Rather, I am installing by doing the following -

I don't think the lpq library comes (in the correct format) with the latest 
versions of PostgreSQL hence I had the same problem which I never resolved.

You can get windows binaries from 
http://www.stickpeople.com/projects/python/win-psycopg/ though.

HTH,
Dave


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to