[rjb-users] doesn't compile in mingw
rogerdpack2 at gmail.com
Thu Oct 1 11:38:22 EDT 2009
> You can install rjb on win32 (with Oneclick or Instant Rails that based
> on Oneclick) with mswin32 gem from Rubyforge, because mingw binary and
> mswin32 binary are compatible. They are all standing on MSVCRT.dll.
> BTW the first problem, it seems that you don't set JAVA_HOME environment
> variable. The variable must point JDK installed directory before making.
Thank you for the reply!
The one click installer is moving to mingw on 1.9. Since there are no
1.9 binaries available, I use the mingw devkit to install it.
When I do so [even though JAVA_HOME is well set, viz]
05/22/2009 02:35 PM 67,831 jni.h
mkmf.log has this to say...
"gcc -E -I. -Ic:/ruby18/lib/ruby/1.8/i386-mingw32 -I. -IC:\Program
Files\Java\jdk1.6.0_13\include\win32 -g -O2 -IC:\Program
Files\Java\jdk1.6.0_13\include\win32 conftest.c -o conftest.i"
which doesn't compile because the paths need to be surrounded by quotes, like
gcc -E -I. -Ic:/ruby18/lib/ruby/1.8/i386-mingw32 -I. -I"C:\Program
Files\Java\jdk1.6.0_13\include\win32" -g -O2 -I"C:\Program
Files\Java\jdk1.6.0_13\include\win32" conftest.c -o conftest.i
so in order for a poor bloke like me to use rjb, it'll either need to
be distributed with "fat binaries" such that it has a precompiled
binary for mingw on 1.9, or the extconf would need to be changed
slightly to make it mingw compatible.
Sorry for the confusion.
More information about the rjb-users