From: WATANABE Hirofumi Date: 2001-10-30T13:02:39+09:00 Subject: [ruby-talk:23799] Re: Problem Building Ruby extension (swin) with MinGW under Win2K... Hi, "Rich Kilmer" writes: :and I get the following in the mkmf.log file (repeated several times): : :gcc -bmingw -o conftest -Ic:/infoether/ruby/lib/ruby/1.6/i386-mingw32 -DNT -D__MSVCRT__ -Os -I/usr/local/mingw/include -I/usr/local/mingw/include -L/usr/local/mingw/lib conftest.c -lole32 -lwsock32 -lmsvcrt :gcc: installation problem, cannot exec `cpp0': No such file or directory : :This error usually means that the path to gcc, etc is not set, but it is. : :It builds a Makefile, but when I try and make, I get the same error (gcc: installation problem...). : :Can anyone help? Install the bmingw package: http://www.ruby-lang.org/~eban/binaries/mingw/bmingw/ Or run this: ruby -i~ -pe 'sub!(/-bmingw/, "-mno-cygwin")' \ c:/infoether/ruby/lib/ruby/1.6/i386-mingw32/rbconfig.rb -- eban