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

RubyGems 2.0.2 can't find openssl on jRuby 1.7.3 #573

Closed
rmehner opened this issue Mar 10, 2013 · 2 comments
Closed

RubyGems 2.0.2 can't find openssl on jRuby 1.7.3 #573

rmehner opened this issue Mar 10, 2013 · 2 comments

Comments

@rmehner
Copy link

rmehner commented Mar 10, 2013

On a fresh jRuby 1.7.3 install without any gems installed I upgraded rubygems to 2.0.2. Now I can't install gems anymore, as gem install can't load openssl. See error with trace below:

$ gem install kramdown --backtrace
ERROR:  Loading command: install (LoadError)
    no such file to load -- openssl
    org/jruby/RubyKernel.java:1027:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:45:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/security/policy.rb:23:in `initialize'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/security/policies.rb:6:in `Security'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/security/policies.rb:1:in `(root)'
    org/jruby/RubyKernel.java:1027:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:45:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/security.rb:1:in `(root)'
    org/jruby/RubyKernel.java:1027:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:45:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/security.rb:583:in `(root)'
    org/jruby/RubyKernel.java:1027:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:45:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/package.rb:1:in `(root)'
    org/jruby/RubyKernel.java:1027:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:45:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/package.rb:43:in `(root)'
    org/jruby/RubyKernel.java:1027:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:45:in `require'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/dependency_installer.rb:1:in `(root)'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/dependency_installer.rb:3:in `(root)'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/commands/install_command.rb:1:in `(root)'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/commands/install_command.rb:3:in `(root)'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/command_manager.rb:1:in `(root)'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/command_manager.rb:206:in `load_and_instantiate'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/bin/gem:30:in `(root)'
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/command_manager.rb:170:in `process_args'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/command_manager.rb:130:in `run'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/lib/ruby/shared/rubygems/gem_runner.rb:60:in `run'
    /Users/rmehner/.rbenv/versions/jruby-1.7.3/bin/gem:30:in `(root)'

After discussing with @headius over twitter, he asked me to open up this issue. Not sure if this is a RubyGems issue or a jRuby issue. Happy to take directions. Others seem to be affected too (especially since TravisCI recently upgraded their rubygems install): https://twitter.com/partos_/status/310795317551456256

Further info:

$ gem -v
2.0.2

$ ruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.6.0_43-b01-447-11M4203 [darwin-x86_64]

Thank you for your time and work!

@BanzaiMan
Copy link
Member

I believe there are RubyGems customization that the normal upgrade will nuke.

@BanzaiMan
Copy link
Member

I'm going to close this as a duplicate of #572.

eregon added a commit that referenced this issue Jan 29, 2018
83063a3 Guard spec causing SEGV on MRI on Windows
670e8e5 Version transform_keys spec as it is not yet clear if it will be backported
fd56cd4 Add version guards for defined?(top-level constant lookup)
577bfbc Add missing version guard
d3ff8f7 Avoid 2.5-specific syntax
8b385ca Add missing version guard
faba5e2 defined? returns nil for toplevel constant lookup
a17f11c Fix rubyspec against the change in Hash#transform_keys!
18bd9bd Group related File.umask specs together
3adf01b Remove specs trying arbitrary values for chmod and umask
2ab64e9 system_spec.rb: add RubySpec for r62025
de141fd r61950 changes mode_t to ushort on FreeBSD and Darwin
c390e3d matrix.rb: add Matrix#antisymmetric?
5672af0 spec/: skip some specs so that no failure occurs in root privilege
c2023d6 spec/ruby/library/etc/getlogin_spec.rb: Use `logname` as an expected result
e5d045e `$SAFE` as a process global state. [Feature #14250]
726e32e There are no signals on Windows
3585f7c Fix style
17ebd61 [spec] Complex() with nil argument - according to how MRI (2.4) behaves
2295c9f Add spec for Hash#rehash with duplicate keys
acef8e2 Isolate threads and ensure they are alive before testing.
5cd975a Revert "Allow more GC cycles for the reference to be vacated."
0dbbac1 Add an extra spec when inspecting the receiver of a NoMethodError fails
16de198 Fix NoMethodError#inspect spec
8840483 It seems that = and ~ are not escaped in MRI
e73e0a6 Add spec for Method#to_proc.binding.receiver.
5dc2090 Add spec for IO#ungetc
e716a09 Add spec for when inspect is called when a NoMethodError is thrown.
47f70ee Make sure the number for ABRT signal does not lead to IOT
657640c Add spec to check that files aren't closed if autoclose = false.
823eabe Add new spec for Signal.trap
143fa1d Fix a few descriptions in C-API Numeric specs
42542b6 Add specs for rb_ull2inum()
3154730 Ensure Array#[]=(range, scalar) returns the correct value.
c38a0c5 Simplify Module#const_missing spec by using private visibility
718ca7b Add spec to verify `const_missing' is called for missing constants even when visibility is non-public.
239785b Remove hack in Kernel#yield_self spec
1afff14 Spec for defined global with nil value.
fc27321 Add examples of nested methods resetting the visibility to public
8165048 Add a spec about the default definee inside Module#define_method
cf7b2db Make sure the method is not defined on Object in nested def spec
f30246e Add Rational and Complex to != #hash in != processes spec
ea1d7e2 Unshare Complex#hash specs since there is only one usage
30b88e5 Add specs catching a bug when using a thread-pool for Fibers
afa2c6a Use @method in the shared Fiber#resume/transfer spec
da3aff2 Move Fiber#resume-specific spec out of shared specs
bf6e49e Add specs for escaping in %r style regexp literals.
826f776 One more expectation for String#-@
3952a7d Clarify example
a2fd7c4 Add an extra spec for String#-@ with frozen strings
db9be93 [Code review] Add extra expectations
50db73e Add specs for -"literal" (String#-@) optimized to return the same object
fabe37e Add specs for String#-@ deduplicates unfrozen strings
7fa2202 Add spec for IO#close when stream closed in another thread
4e665c8 Add spec for Process#last_status
0c41549 Unify usages of it_behaves_like to not include parenthesis
5301f24 Show two usages of a shared spec to clarify
8117d90 Move style section at the end
af0e1ca Add missing quote
b777f8c Documents the shared specs functionality
fa85c3c Add spec for Thread#fetch
10c1011 Add specs for ^ and $, and Regexp.last_match
eb44155 Add spec for String#start_with? supporting regexp
98bbaf3 [Code review] Fix and refactor #div and #divide specs
f3aeb79 Remove specs for inherited from Numeric/Kernel methods - #zero?, #dup, #hash
84c2867 Add missing specs and refactor some of them
d6eac79 Remove Fixnum specs
98658f9 Remove Bignum specs
215c9b6 Adopt Bignum specs
fcebb9b Adopt Fixnum specs
394fb12 Remove ruby version guards from coerce shared examples
8fd24d2 Move Fixnum#coerce specs to Numeric#coerce
d776690 Move Fixnum#hash specs to Kernel#Hash
8f5c639 Thread#backtrace should never be nil for a living Thread (#581)
875da49 test Fiber#transfer between fibers in a non-main thread
8c9960a Moves KeyError into Shared spec (#576)
957a3cf Merge pull request #577 from andrykonchin/file-path-raises-an-ioerror
3703d0f [Code review] Fix typo
708e70c [Code review] Move new test case to the shared example
e034de1 Use guard instead of if statement globally
b0b7b02 [Code review] Use guard instead of if statement
40d8c9a Add specs for File.path
ece1a44 Add specs for raising IOError for unnamed files
a6453bf Merge pull request #573 from andrykonchin/integer-pow-accepts-modulo-argument
76b7bc0 Share specs between File#to_path and File#path
172816b Move specs for File#to_path to shared file
60a7239 Fix specs for Integer/Bignum class check in the old Ruby versions
2e21673 [Code review] Share some cases with Integer#**
968c4b4 [Code review] Mark the case as a bug
05b4597 Adds coverage for KeyError#receiver / KeyError#key (#574)
971ffe0 [Code review] Fix typo and add new cases
ac92825 Suppress rubocop warnings
00a0ac6 Add missing argument in expected call in Net::FTP#initialize spec
be17ce5 Add spec for Enumerator::Lazy#chunk
8e2ac9c Add specs for Net::FTP.new options
7426d24 Adopt specs for Fixnum#**, refactor and add new cases for Integer#pow
b95d7ed Clarify leap second specs
88c68f3 Only run if leap second support is available
46db21a Bad leap seconds are handled on all platforms

git-subtree-dir: spec/ruby
git-subtree-split: 83063a312d81113ebe5cfe8f90836da4024dcd35
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