Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: JRuby 1.0.0RC2
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:N/A
-
Number of attachments :
Description
mkmf.rb is missing from JRuby 1.0.0RC2. I don't know if this is intentional or not, but it blocks installing the mysql gem. It appears to be have been taken out as part of the bug JRUBY-515. I am new to JRuby so perhaps installing this mysql gem is the wrong idea, but I don't understand why mkmf would be pulled. As far as I can tell there isn't any particular reason mkmf shouldn't work.
Please close this if I'm wrong, but otherwise, mkmf should probably be in 1.0.0 if it's in 1.8.5.
mkmf is for creating C makefiles for Ruby extensions. Since we don't support running native (C-based) extensions in JRuby, we don't inclue mkmf. This does unfortunately mean that the C-based MySQL gem will not work, nor will other gems that include C code.
If you'd like to use MySQL on JRuby, you probably should look to ActiveRecord (with the ActiveRecord-JDBC connector), DBI (which will hopefully soon have support for JRuby), or just calling JDBC APIs directly.