From: Rich Kilmer Date: 2001-10-30T13:36:57+09:00 Subject: [ruby-talk:23803] Re: Problem Building Ruby extension (swin) with MinGW under Win2K... > -----Original Message----- > From: WATANABE Hirofumi [mailto:eban@os.rim.or.jp] > Sent: Monday, October 29, 2001 11:03 PM > To: ruby-talk ML > 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 This still has the same problem. I have the (entire) MinGW installation (gcc, make, etc). I tried with the bmingw stuff, and the -mno-cygwin switch...still same error error: gcc -mno-cygwin -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 my /usr/local tree: usr/local:. |---bin |---lib | '---ruby | |---1.6 | | |---cgi | | |---i386-mingw32 | | | |---digest | | | '---win32 | | |---irb | | | '---lc | | | '---ja | | |---net | | '---shell | '---site_ruby | '---1.6 | |---i386-mingw32 | | '---tmail | |---inifile | |---nqxml | |---runit | | |---cui | | '---ext | |---tmail | |---urb | |---vr | | |---compat | | '---contrib | '---xmlrpc | '---temp '---mingw |---bin |---include | |---g++-3 | | '---std | '---sys |---info-html |---lib | '---gcc-lib | '---mingw32 | '---2.95.3-6 | '---include | '---objc |---man | '---man1 '---mingw32 |---bin |---include '---lib '---ldscripts