From: Gour Date: 2003-03-30T07:08:16+09:00 Subject: Re: Building Ruby with MinGW help needed Tobias Peters (tpeters@uni-oldenburg.de) wrote: > No. I just encounter similar problems with almost any extension for > mingw-ruby. I just discovered why there is a problem running "ruby extconf.rb" under MSYS shell. In older ( < 1.7 or 1.8) versions of Ruby, there was problem with "system" method call, e.g. try: $ irb irb(main):001:0> system("gcc -v") => false while 1.8 gives: ggd@GGD /opt/ruby/bin $ ruby irb irb(main):001:0> ENV['PATH'] ENV['PATH'] => ".;c:/MinGW/bin;C:/MSYS/1.0/BIN;c:/MinGW/BIN;c:/MinGW/LIB;j:/DOS;j:/MERGE;c:/WINDOWS;c:/WINDOWS/COMMAND;." irb(main):002:0> system("gcc -v") system("gcc -v") Reading specs from c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared Thread model: win32 gcc version 3.2 (mingw special 20020817-1) => true irb(main):003:0> For building Ruby-GTK2 bindings I had to make one small adjustments in mkmf-gnome2.rb script, and now the whole environment is correctly recognized under MSYS shell. I still have some problems in compiling my own 1.8, but after resolving it, I'll post my small HOWTO. Sincerely, Gour -- Gour gour@mail.inet.hr Registered Linux User #278493