0

在我的 Rails 引擎中,我收到“加载 RubyGems 时出错”。但是,当我在我的应用程序的根目录中时,此错误不会持续存在。

从我的主要 Rails 文件夹中:

$ gem -v
2.0.5

从发动机内部:

$ gem -v
Error loading RubyGems plugin "/Users/me/.rvm/gems/ruby-2.0.0-p247@global/gems/rubygems-bundler-1.2.2/lib/rubygems_plugin.rb": dlopen(/Users/me/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.1/openssl.bundle, 9): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
  Referenced from: /Users/me/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.1/openssl.bundle
  Reason: image not found - /Users/me/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.1/openssl.bundle (LoadError)
2.0.5

这使我无法运行 bundle install、rails server 等。

我难住了。我找不到任何有同样问题的人,而且我认为今晚可能会出现的线索已经用完了。谢谢...

4

1 回答 1

0

It turns out that the problem was a lack of .ruby-version file in my engine directory. Just adding this file ended up fixing the problem.

于 2013-08-23T18:29:15.047 回答