English 中文(简体)
铁路3:停机装载错误
原标题:Rails 3: jopenssl load error

当我试图操作<条码>铁路/条码>时,我发现这一错误。 它从事生产,但不是在我的当地MacOSX上。

任何想法?

/gems/jruby-openssl-0.7.3/lib/openssl.rb:66:in `require : no such file to load -- jopenssl (LoadError)
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/jruby-openssl-0.7.3/lib/openssl.rb:66
    from /Users/kellymkampen/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/net/https.rb:102:in `require 
    from /Users/username/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/net/https.rb:102
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/oauth-0.4.4/lib/oauth/consumer.rb:2:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/oauth-0.4.4/lib/oauth/consumer.rb:2
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/oauth-0.4.4/lib/oauth/client/helper.rb:2:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/oauth-0.4.4/lib/oauth/client/helper.rb:2
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/oauth-0.4.4/lib/oauth.rb:10:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/oauth-0.4.4/lib/oauth.rb:10
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `each 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `each 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/bundler-1.0.10/lib/bundler.rb:120:in `require 
    from /Users/username/rails_projects/socialblast/config/application.rb:7
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/railties-3.0.5/lib/rails/commands.rb:28:in `require 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/railties-3.0.5/lib/rails/commands.rb:28
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/railties-3.0.5/lib/rails/commands.rb:27:in `tap 
    from /Users/username/.rvm/gems/ruby-1.8.7-p330@SocialBlast/gems/railties-3.0.5/lib/rails/commands.rb:27
    from script/rails:6:in `require 
    from script/rails:6

Gemfile

gem  rails ,  3.0.5 
gem  sqlite3-ruby ,  1.3.2 , :require =>  sqlite3 
gem  gravatar_image_tag ,  0.1.0 
gem  will_paginate ,  3.0.pre2 
gem  paperclip , "~> 2.3"
gem  oauth ,  ~> 0.4.4 
gem  twitter ,  ~> 1.1.2 
gem  carmen 
gem  aws-s3 
gem  remotipart 
gem  jquery-rails ,  >= 0.2.6 
gem  fb_graph ,  >=1.4.0 
gem  faker ,  0.3.1 
gem  rmagick ,  2.12.2 , :require => "RMagick"
gem  yaml_db 
gem  haml-rails 
gem  compass ,  ~> 0.10.6 
gem  yajl-ruby ,  >= 0.7.6 
gem  jruby-openssl 
最佳回答

I had this problem too... here s how I solved it (note that I m using jruby too).

第一次检查:<代码>ruby -ropenssl-e OpenSSL

如果出现任何错误,你应尝试gem 安装jruby-opensl

此处为粗略轨道:在>/gems/jruby-openssl-0.7.3/lib/ opensl.rb中,我从<代码>更改了第66条,从改为require opensl

它看上去一只 j子:

问题回答

暂无回答




相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签