From: Luis Lavena Date: 2007-10-20T04:39:47+09:00 Subject: Re: Compile 1.8.6-p110 under MinGW - test-all problems Roger Pack wrote: > My question is with minGW compilation--how do you create the zlib .so > file, especially after you've already compiled everything else (and I do > have the zlib libraries also compiled with mingw)? > there is this ext/zlib/extconf.rb file, but it doesn't seem to do > anything. Any thoughts? Trying to put together a minGW release, for > fun :) > Take care. > -Roger Roger, I used MinGW candidate using the Automated MinGW Installer: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780 Only installed the C compiler (do not install make since will clash and do weird things). Installed MSYS-1.0.10 and MSYS DTK. Then I followed the steps to install MinGWports and installed as ports readline and zlib (Zlib is official, readline is a patch in the tracket at sourceforge). I unzipped the ruby package and run inside a MSYS console: ./configure --with-winsock2 make At this point you should check the output for 'compiling readline' 'compiling zlib' etc... and see if everything worked. make check (to run tests) make install That will create bin/lib/man/share in the root of your drive (thats because generated make file isn't compatible with MSYS). You should have there a working implementation. zlib.dll will be located at you MinGW bin folder, which is where MinGWport install it. The same for readline. Write this mail from memory took me a few minutes, but compile with VC8 (replying your other mail) is more complex. I could give you a full checkout of my own repo where I was hacking this. Contact me off the list if you're interested. Regards and hope this help, Luis -- Posted via http://www.ruby-forum.com/.