Thread: cannot install psycopg2

cannot install psycopg2

From
Peter Irbizon
Date:
hello,please help, I am trying to install psycopg on winXP Pro with Python 2.7 but the following errors occured: What am I doing wrong?
 
C:\Python_ext\psycopg2-2.4.4>python setup.py install
running install
running build
running build_py
running build_ext
building 'psycopg2._psycopg' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOPG_VER
SION=\"2.4.4 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090102 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_N
EW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -IC:\Python27\include -IC:\Python27\PC -I. -IC:/PROGRA~1/POST
GR~1/9.1/include -IC:/PROGRA~1/POSTGR~1/9.1/include/server -c psycopg\psycopgmodule.c -o buil
d\temp.win32-2.7\Release\psycopg\psycopgmodule.o -O3 -fno-strict-aliasing
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1

Re: cannot install psycopg2

From
Adrian Klaver
Date:
On Sunday, January 01, 2012 11:40:07 am Peter Irbizon wrote:
> hello,please help, I am trying to install psycopg on winXP Pro with Python
> 2.7 but the following errors occured: What am I doing wrong?
>
> C:\Python_ext\psycopg2-2.4.4>python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building 'psycopg2._psycopg' extension
> C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
> -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOPG_VER
> SION=\"2.4.4 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090102
> -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_N
> EW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -IC:\Python27\include -IC:\Python27\PC -I.
> -IC:/PROGRA~1/POST
> GR~1/9.1/include -IC:/PROGRA~1/POSTGR~1/9.1/include/server -c
> psycopg\psycopgmodule.c -o buil
> d\temp.win32-2.7\Release\psycopg\psycopgmodule.o -O3 -fno-strict-aliasing
> cc1.exe: error: unrecognized command line option '-mno-cygwin'
> error: command 'gcc' failed with exit status 1

The best answer is go to:

http://initd.org/psycopg/install/

and read the section on "Installing on Windows"




--
Adrian Klaver
adrian.klaver@gmail.com

Re: cannot install psycopg2

From
Peter Irbizon
Date:
thanks I did. Unfortunately no progress. I have mingw but I always stuck at this error...

2012/1/1 Adrian Klaver <adrian.klaver@gmail.com>
On Sunday, January 01, 2012 11:40:07 am Peter Irbizon wrote:
> hello,please help, I am trying to install psycopg on winXP Pro with Python
> 2.7 but the following errors occured: What am I doing wrong?
>
> C:\Python_ext\psycopg2-2.4.4>python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building 'psycopg2._psycopg' extension
> C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
> -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOPG_VER
> SION=\"2.4.4 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090102
> -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_N
> EW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -IC:\Python27\include -IC:\Python27\PC -I.
> -IC:/PROGRA~1/POST
> GR~1/9.1/include -IC:/PROGRA~1/POSTGR~1/9.1/include/server -c
> psycopg\psycopgmodule.c -o buil
> d\temp.win32-2.7\Release\psycopg\psycopgmodule.o -O3 -fno-strict-aliasing
> cc1.exe: error: unrecognized command line option '-mno-cygwin'
> error: command 'gcc' failed with exit status 1

The best answer is go to:

http://initd.org/psycopg/install/

and read the section on "Installing on Windows"




--
Adrian Klaver
adrian.klaver@gmail.com

Re: cannot install psycopg2

From
Peter Irbizon
Date:


2012/1/1 Peter Irbizon <peterirbizon@gmail.com>
thanks I did. Unfortunately no progress. I have mingw but I always stuck at this error...


2012/1/1 Adrian Klaver <adrian.klaver@gmail.com>
On Sunday, January 01, 2012 11:40:07 am Peter Irbizon wrote:
> hello,please help, I am trying to install psycopg on winXP Pro with Python
> 2.7 but the following errors occured: What am I doing wrong?
>
> C:\Python_ext\psycopg2-2.4.4>python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building 'psycopg2._psycopg' extension
> C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
> -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOPG_VER
> SION=\"2.4.4 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090102
> -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_N
> EW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -IC:\Python27\include -IC:\Python27\PC -I.
> -IC:/PROGRA~1/POST
> GR~1/9.1/include -IC:/PROGRA~1/POSTGR~1/9.1/include/server -c
> psycopg\psycopgmodule.c -o buil
> d\temp.win32-2.7\Release\psycopg\psycopgmodule.o -O3 -fno-strict-aliasing
> cc1.exe: error: unrecognized command line option '-mno-cygwin'
> error: command 'gcc' failed with exit status 1

The best answer is go to:

http://initd.org/psycopg/install/

and read the section on "Installing on Windows"




--
Adrian Klaver
adrian.klaver@gmail.com


Re: cannot install psycopg2

From
Joe Abbate
Date:
On 01/01/2012 03:25 PM, Peter Irbizon wrote:
> cc1.exe: error: unrecognized command line option '-mno-cygwin'

This may help:


http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o

Joe

Re: cannot install psycopg2

From
Peter Irbizon
Date:
Hi guys,
 
Joe, thanks for link http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o ! I removed '-mno-cygwin' and now it works fine! Thanks again for your help.

2012/1/1 Joe Abbate <jma@freedomcircle.com>
On 01/01/2012 03:25 PM, Peter Irbizon wrote:
> cc1.exe: error: unrecognized command line option '-mno-cygwin'

This may help:

http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o

Joe

--
Sent via psycopg mailing list (psycopg@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/psycopg