Re: Reg: Installation problems in psycopg2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    Re: Reg: Installation problems in psycopg2

    <raj.indian.0 8 <atgmail.comwri tes:
    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\mingw3 2\3.4.5\..\..\. .\..\mingw32\bi n\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 namewhile 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


  • raj.indian.08@gmail.com

    #2
    Re: Reg: Installation problems in psycopg2

    Hi Philip,
    Thank you. I have posted the same in psycopg mailing list too.
    I had setup the pg_config value too, but even then the error was
    coming.

    Hi Dave,
    Thank you for the quick reply.

    Regards
    Raj K

    Comment

    Working...