Ben Bb wrote:
Can I compile gem native extension with MinGW if I have install ruby
with the one click installer ?
No, not really. Ruby stores information about how it itself was
compiled, and uses this information to compile extensions. For example,
if Ruby was compiled using ‘cl.exe’ (Microsoft’s MSVC, used for the
current one-click installer), it will always try to build extensions
using ‘cl’, not ‘gcc’ (the name of the MingW compiler).
Juggernaut does not provide a precompiled build so how can I do if I
want to install it ?
Get or build a MingW ruby, then install juggernaut to this ruby.
There are precompiled binaries available for MingW, for example, here:
Install the same Microsoft compiler used to build the OCI. This is
MSVC 6.0 (although practically, I’ve used MSVC 7.1 without
Microsoft has helpfully decided not offer these for download any more,
but they are not hard to get hold of (on CDs with programming books, or
perhaps, one might imagine, via some P2P file distribution network… )
I would go for 1), as you’ll get a faster ruby with MingW than very old
MSVC, and MSVC is clumsy as a command-line compiler b/c the default
Windows shell is rubbish.
I’ve seen some ways suggested of hacking the OCI configuration to use
MingW as a compiler, but this seems to me messy and error-prone.