Issues on building gevent on Windows

805 views
Skip to first unread message

Pengkui Luo

unread,
Jan 21, 2012, 6:50:05 AM1/21/12
to gevent: coroutine-based Python network library
Hi, I have some problems in building gevent-0.13.6 with
libevent-1.4.13 on Windows 7 (64bit). The C compilers I have installed
include mingw32 gcc 4.6.1 and vc2010. Below are my printouts. Can
anybody tell me how to do it?


R:\DOWNLOADS\gevent-0.13.6>python setup.py --libevent ..
\libevent-1.4.13-stable build

running build
running build_py
running build_ext
building 'gevent.core' extension
error: Unable to find vcvarsall.bat

R:\DOWNLOADS\gevent-0.13.6>python setup.py --libevent ..
\libevent-1.4.13-stable build --compiler=mingw32

running build
running build_py
running build_ext
building 'gevent.core' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I..\libevent-1.4.13-
stable\include -I..\libevent-1.4.13-stable -I..\libevent-1.4.13-stable
\compat -I..\libevent-1.4.13-stable\WIN32-Code -I..\libevent-1.4.13-
stable\WIN32-Code -I..\libevent-1.4.13-stable\compat -IC:
\Python27\include -IC:\Python27\PC -c gevent/core.c -o build
\temp.win32-2.7\Release\gevent\core.o -DHAVE_CONFIG_H -DWIN32
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1


Thanks!

~Pengkui

Denis Bilenko

unread,
Jan 23, 2012, 1:41:53 AM1/23/12
to gev...@googlegroups.com
On Sat, Jan 21, 2012 at 6:50 PM, Pengkui Luo <pengk...@gmail.com> wrote:
> Hi, I have some problems in building gevent-0.13.6 with
> libevent-1.4.13 on Windows 7 (64bit). The C compilers I have installed
> include mingw32 gcc 4.6.1 and vc2010. Below are my printouts. Can
> anybody tell me how to do it?
>
> R:\DOWNLOADS\gevent-0.13.6>python setup.py --libevent ..
> \libevent-1.4.13-stable build
>
> running build
> running build_py
> running build_ext
> building 'gevent.core' extension
> error: Unable to find vcvarsall.bat
>
> R:\DOWNLOADS\gevent-0.13.6>python setup.py --libevent ..
> \libevent-1.4.13-stable build --compiler=mingw32

If you have vc, why use mingw32? What does it says without this option?

You can also try 1.0b1. It has binary installers for windows:
http://code.google.com/p/gevent/downloads/list

Tom Hoover

unread,
Jan 23, 2012, 1:20:19 PM1/23/12
to gev...@googlegroups.com
I believe that you want VS2008, or the Windows SDK for Windows Server 2008 and .Net Framework 3.5 -- http://www.microsoft.com/download/en/details.aspx?id=11310.

One thing to watch out for: the Windows SDK doesn't put vcvarsall.bat in the right place (%ProgramFiles%\Microsoft Visual Studio 9.0\VC). All that vcvarsall.bat does is detect what platform you're targeting and calls the appropriate batch file. For example, for x86, it calls %ProgramFiles%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat. So, if you go with the Windows SDK, you could just copy a vcvarsall.bat one over from a machine that has VS2008 on it, or hack something else in.

Hope this helps.

- tom

Reply all
Reply to author
Forward
0 new messages