Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for JRuby #135

Closed
sferik opened this issue Dec 28, 2011 · 3 comments
Closed

Add support for JRuby #135

sferik opened this issue Dec 28, 2011 · 3 comments

Comments

@sferik
Copy link

sferik commented Dec 28, 2011

I'd like to reopen issue #65.

With the latest version of JRuby, it is possible to install Typhoeus, but it's failing with the error

NameError: undefined method `queue' for class `Typhoeus::Hydra'

Here's a link to the full trace: http://travis-ci.org/#!/technoweenie/faraday/jobs/455588

I had to disable tests for Typhoeus in Faraday to make them pass on JRuby: technoweenie/faraday@fea22ff.

It would be nice if we could get this working.

/cc @headius @enebo @BanzaiMan @nahi @technoweenie @mislav

@nahi
Copy link

nahi commented Dec 29, 2011

Hmm, 'bundle exec rake' runs fine for me, both JRuby master and JRuby 1.6.5. Can you try to point what testcase fails at CI?

@freerobby
Copy link

We're seeing problems with Typhoeus on JRuby 1.6.7, using Torquebox/JBoss. Stack trace on app startup indicates it's a problem with native extensions.

18:16:20,580 ERROR org.torquebox.core.runtime Error during execution: ENV['RAILS_ROOT']=RACK_ROOT
ENV['RAILS_ENV']=RACK_ENV
require %q(org/torquebox/web/rails/boot)
: org.jruby.exceptions.RaiseException: (LoadError) load error: typhoeus/native -- java.lang.UnsatisfiedLinkError: dlopen(/Users/robby/.rvm/gems/jruby-1.6.7@shareaholic_on_rails/gems/typhoeus-0.3.3/ext/typhoeus/native.bundle, 9): no suitable image found. Did find:
/Users/robby/.rvm/gems/jruby-1.6.7@shareaholic_on_rails/gems/typhoeus-0.3.3/ext/typhoeus/native.bundle: mach-o, but wrong architecture
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1042) [jruby.jar:]

@hanshasselberg
Copy link
Member

I think the ffi integration should do it. I'll enable travis for jruby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants