2

所以我基本上明白了:

/.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

当我在我的项目目录上尝试 tuse any railsor command 时会发生这种情况。rake我尝试了很多东西,我仍然找不到通过它的方法。

任何帮助将非常感激。提前致谢。

4

0 回答 0