所以我基本上得到了这个:
/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/https.rb:22:in `require': cannot load such file -- openssl (LoadError)
from /.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
from /.rvm/gems/ruby-1.9.3-p392/gems/activeresource-3.2.12/lib/active_resource/connection.rb:4:in `require'
from /.rvm/gems/ruby-1.9.3-p392/gems/activeresource-3.2.12/lib/active_resource/connection.rb:4:in `<top (required)>'
from /.rvm/gems/ruby-1.9.3-p392/gems/activeresource-3.2.12/lib/active_resource/base.rb:15:in `require'
from /.rvm/gems/ruby-1.9.3-p392/gems/activeresource-3.2.12/lib/active_resource/base.rb:15:in `<top (required)>'
from /.rvm/gems/ruby-1.9.3-p392/gems/cached_resource-2.3.3/lib/cached_resource.rb:15:in `<top (required)>'
from /.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.0/lib/bundler/runtime.rb:72:in `require'
from /.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.0/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.0/lib/bundler/runtime.rb:70:in `each'
from /.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.0/lib/bundler/runtime.rb:70:in `block in require'
from /.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.0/lib/bundler/runtime.rb:59:in `each'
from /.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.0/lib/bundler/runtime.rb:59:in `require'
from /.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.0/lib/bundler.rb:132:in `require'
from /.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:53:in `require'
from /.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:53:in `block in <top (required)>'
from /.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:50:in `tap'
from /.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
即使这样做了:
$ rvm pkg install openssl
$ rvm remove 1.9.3
$ rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr
我的.zhsrc
文件中也有此内容:
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
当我尝试在项目目录中使用任何rails
或rake
命令时会发生这种情况。我尝试了很多东西,但仍然找不到通过它的方法。
非常感谢任何帮助。提前谢谢。