[rjb-users] doesn't compile in mingw

arton arton at e07.itscom.net
Thu Oct 1 18:53:06 EDT 2009


Hi,

OK, the fastest workaround is setting JAVA_HOME with the win32 short
path name instead of the long path name.
ex)
set JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_13\

This makes mingw happy.

Regards
--------------------------------- Roger Pack rogerdpack2 at gmail.com
rogerdpack2 at gmail.com, rjb-users at rubyforge.org
[rjb-users] doesn't compile in mingw
> > 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]
> 
> C:\dev\blade_copy\digitalarchive_trunk>dir "%JAVA_HOME%\include\jni.h"
> 05/22/2009  02:35 PM            67,831 jni.h
> 
> mkmf.log has this to say...
> 
> "failed"
> "gcc -E -I. -Ic:/ruby18/lib/ruby/1.8/i386-mingw32 -I. -IC:\Program
> Files\Java\jdk1.6.0_13\include -IC:\Program
> Files\Java\jdk1.6.0_13\include\win32   -g -O2  -IC:\Program
> Files\Java\jdk1.6.0_13\include -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" -I"C:\Program
> Files\Java\jdk1.6.0_13\include\win32"   -g -O2  -I"C:\Program
> Files\Java\jdk1.6.0_13\include" -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.
> -r
> _______________________________________________
> rjb-users mailing list
> rjb-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rjb-users



More information about the rjb-users mailing list