[Distutils] Specifying a compiler

Phillip J. Eby pje at telecommunity.com
Fri Dec 1 18:45:22 CET 2006

At 10:30 AM 12/1/2006 -0700, Robert McFadzean wrote:
>Thank you for your help.  I did download the MinGW compiler.  When I try a 
>build with it I get:
>running build_ext
>building '_mysql' extension
>creating build\temp.win32-2.5
>creating build\temp.win32-2.5\Release
>gcc -mno-cygwin -mdll -O -Wall -ID:/mysql/include -ID:\Python\include 
>n\PC -c _mysql.c -o build\temp.win32-2.5\Release\_mysql.o 
>'beta',2) /D__version__=1.2.2b2
>error: command 'gcc' failed: No such file or directory
>The gcc.exe file does exist in the MinGW\bin folder.  Any ideas?

You need to have that bin directory on your PATH when running setup scripts.

More information about the Distutils-SIG mailing list