わたなべ さん お手数をおかけします。 > > これを行ってみました。ところが、configure で > > checking build system type... i686-pc-cygwin > > checking host system type... i686-pc-cygwin > > checking target system type... i686-pc-cygwin > > checking for gcc... gcc -mno-cygwin > > となり、 > > この後で、もうちょっと進むと > checking for mingw32 environment... yes > と出てませんか? 出てきました。なるほど、targetに はもう mingw という語ではな いのですね。それで cygwin\usr\i686-pc-mingw32 このようなdirectoryがあるのですか。ここに /include/mingw/ のaliasが出来ているのですか。 > > gcc -mno-cygwin -D__NO_ISOCEXT -O2 -I. -I.. -DLIBRUBY_SO=\"msvcrt-ruby18.dll\" -c ../dir.c > > -D__NO_ISOCEXTが出てくるということはひょっとして1.8.0 preview1 > ですか?mingw32的にははっきり言ってこのpreviewは使い物になり > ません。CVSの最新を試してください。もしくはそのtarballを。 > > ftp://ftp.ruby-lang.org/pub/ruby/snapshot.tar.gz preview でした。snapshot に変更しました。 > > gcc -mno-cygwin -D__NO_ISOCEXT -O2 -I. -I.. -DLIBRUBY_SO=\"msvcrt-ruby18.dll\" -c ../dir.c > > In file included from /usr/include/unistd.h:6, > > -mno-cygwinを指定しているのもかかわらず、cygwinの > /usr/include/unistd.hを見つけてしまっているのは、gccのイ > ンストールが失敗している可能性があります。もしくは > mingw-runtimeをインストールしてないとか。 > #本来なら/usr/include/mingw/unistd.hが見つからないとまずい。 mingw-runtime は入っていましたので、".bashrc"の export C_INCLUDE_PATH=/usr/include/mingw:/usr/include のところの mingw の順番が後ろであったのを前に持って来ましたらここは 綺麗にパスしました。 ところが、ext に入ってたちまち以下のようになりました。 compiling win32ole compiling tk make[1]: 入ります ディレクトリ `/rubysnapshot/mingw/ext/tk' gcc -mno-cygwin -DIMPORT -O2 -I. -IF:/cygwin/rubysnapshot/mingw -IF:/cygwin/rubysnapshot -IF:/cygwin/rubysnapshot/ext/tk -c /rubysnapshot/ext/tk/tkutil.c In file included from F:/cygwin/rubysnapshot/defines.h:120, from F:/cygwin/rubysnapshot/ruby.h:22, from /rubysnapshot/ext/tk/tkutil.c:11: F:/cygwin/rubysnapshot/win32/win32.h:32:21: windows.h: No such file or directory F:/cygwin/rubysnapshot/win32/win32.h:33:21: winsock.h: No such file or directory In file included from F:/cygwin/rubysnapshot/defines.h:120, from F:/cygwin/rubysnapshot/ruby.h:22, from /rubysnapshot/ext/tk/tkutil.c:11: F:/cygwin/rubysnapshot/win32/win32.h:143: warning: `struct sockaddr' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:143: warning: its scope is only this definition or declaration, which is probably not what you want F:/cygwin/rubysnapshot/win32/win32.h:144: warning: `struct sockaddr' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:145: warning: `struct sockaddr' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:146: parse error before "fd_set" F:/cygwin/rubysnapshot/win32/win32.h:147: parse error before "fd_set" F:/cygwin/rubysnapshot/win32/win32.h:148: parse error before "fd_set" F:/cygwin/rubysnapshot/win32/win32.h:149: parse error before "fd_set" F:/cygwin/rubysnapshot/win32/win32.h:150: warning: `struct sockaddr' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:151: warning: `struct sockaddr' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:153: parse error before "u_long" F:/cygwin/rubysnapshot/win32/win32.h:156: warning: `struct sockaddr' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:158: warning: `struct sockaddr' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:162: parse error before "rb_w32_get_osfhandle" F:/cygwin/rubysnapshot/win32/win32.h:162: warning: data definition has no type or storage class F:/cygwin/rubysnapshot/win32/win32.h:177: warning: `struct timeval' declared inside parameter list F:/cygwin/rubysnapshot/win32/win32.h:453: parse error before "GetCurrentThreadHandle" F:/cygwin/rubysnapshot/win32/win32.h:453: warning: data definition has no type or storage class F:/cygwin/rubysnapshot/win32/win32.h:471: parse error before '*' token F:/cygwin/rubysnapshot/win32/win32.h:471: parse error before "self" F:/cygwin/rubysnapshot/win32/win32.h:471: `DWORD' declared as function returning a function F:/cygwin/rubysnapshot/win32/win32.h:472: parse error before "func" F:/cygwin/rubysnapshot/win32/win32.h:472: `rb_w32_asynchronize' declared as function returning a function make[1]: *** [tkutil.o] エラー 1 make[1]: 出ます ディレクトリ `/rubysnapshot/mingw/ext/tk' make: *** [all] エラー 1 何か一つ一つお聞きするようで、心苦しく、申し訳ありませんが。 ご指導よろしくお願いいたします。 -------========-------- mitsu5 mitsu5 / ruby.famille.ne.jp