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

Error installing latest version #152

Closed
irfn opened this issue Nov 27, 2017 · 6 comments
Closed

Error installing latest version #152

irfn opened this issue Nov 27, 2017 · 6 comments

Comments

@irfn
Copy link

irfn commented Nov 27, 2017

i see that the naming of the gem releases have changed to have -java in the version.

somehow this is causing an issue with including this gem
Env: jruby:9.1.14.0 on docker

Scenario 1:

When i use the following in the Gemfile.

gem 'jruby-openssl', '0.9.21-java'

I get this following error

Could not find gem 'jruby-openssl (= 0.9.21.pre.java)' in any of the gem sources
listed in your Gemfile.

Scenario 2:

When i use the following in the Gemfile. (Omit version)

gem 'jruby-openssl'

Version 0.9.4 gets installed (this is also the same version listed by default on https://rubygems.org/gems/jruby-openssl/)

Scenario 3:

gem 'jruby-openssl', '0.9.21'
Could not find gem 'jruby-openssl (= 0.9.21)' in any of the gem sources listed
in your Gemfile.
@mkristian
Copy link
Member

jruby-openssl is java platform gem - which ruby are you using to install it ?

regarding rubygems.org showing the wrong version is expected behaviour rubygems/rubygems.org#954 (comment) even though from the jruby-openssl it is not wanted.

@irfn
Copy link
Author

irfn commented Nov 27, 2017

This is on a Docker image built from jruby:9.1.14.0 (https://hub.docker.com/_/jruby/)

i had to add this line to make this work
gem 'jruby-openssl', '0.9.21', platform: :jruby

@mkristian
Copy link
Member

if this is a jruby docker image I suspect that jruby is running bundle install and this should pick the right jruby-openssl by default.

@mkristian
Copy link
Member

just double check on regular jruby install it just picks the right and latest or second latest jruby-openssl version. question why is the bundled default jruby-openssl gem coming with jruby not sufficient ?

@irfn
Copy link
Author

irfn commented Nov 28, 2017

@mkristian i am investigating a performance issue and was trying different versions of rails5.x/jruby and decided to pick specific versions and hence the need.
Agree that in the usual usecase one would not hit this issue. You can close this issue, since this thread will act as a guide for anyone else who runs into this issue.
Thanks for your support

@mkristian
Copy link
Member

@irfn closing but still bit puzzled that you ran into this problem as I could not reproduce it. could be still something on JRuby side to fix.

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

2 participants