-
Notifications
You must be signed in to change notification settings - Fork 0
C Extension Alternatives
JRuby versions prior to 1.6 did not support Ruby C extensions, and even in 1.6 the support is still "in development" and considered experimental. This page lists common C extensions and non-C alternatives you can use to replace them.
-
RDiscount - Use Maruku (pure Ruby) or markdown_j (wrapper around a Java library)
-
RMagick - Try RMagick4J (implements ImageMagick functionality in Java) or preferably use alternatives mini_magick & quick_magick. For simple resizing, cropping, greyscaling, etc look at image_voodoo.
-
Unicorn - Try any one of the following JRuby-based servers: Trinidad, Mizuno, Kirk or TorqueBox.
-
Thin - Thin might compile and run but is not recommended. Try any one of the following JRuby-based servers: Trinidad, Mizuno, Kirk or TorqueBox.
-
Typhoeus - The C extension doesn't currently compile. There's no equivalent library for JRuby, but you might try any of the pure-Ruby HTTP clients (
net/http
, httpclient, etc.) -
mysql - Use activerecord-jdbc-adapter instead.
-
mysql2 - Use activerecord-jdbc-adapter instead.
-
Nokogiri - For best results, use the pure-Java version of Nokogiri (1.5 or greater).
Please add to this list with your findings.
Note that the JRuby-Lint gem parses the contents of this page to use for its Ruby gem checker. In order for JRuby-Lint to use the information, please adhere to the * gem_name - instructions
format.