1
我使用Jruby 1.6.7与红宝石> 1.9。当我运行`的JRuby -S捆绑,我看到下面的错误jruby -S bundle没有运行,因为它说jruby-openssl宝石缺少
Fetching gem metadata from https://rubygems.org/.JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at .... Thanks!
LoadError: OpenSSL::SSL requires the jruby-openssl gem
我的Gemfile有这个开放式SSL已经
source 'https://rubygems.org'
gem 'rails', '3.2.6'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'activerecord-jdbcsqlite3-adapter'
gem 'activerecord-oracle_enhanced-adapter', '~>1.4.1'
gem 'jruby-openssl'
,这里是我的Gemfile.lock的
jdbc-sqlite3 (3.7.2)
journey (1.0.4)
jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
jruby-jars (1.6.7.2)
jruby-openssl (0.7.7)
bouncy-castle-java (>= 1.5.0146.1)
jruby-pageant (1.1.1-java)
jruby-rack (1.1.7)
json (1.7.3-java)
的一部分
为什么我仍然得到这个错误,说open-ssl丢失? 此问题与this one完全相关,如果我能在这里执行jurby -S bundle
,我的问题将得到解决。
更新:
我跑bundle install --deployment
后的错误开始。
所以我跑bundle install --no-deployment
然后bundle install
,jurby -S bundle
..一切工作正常。我无法理解这里发生了什么。