更新macOS x时损坏的Rails引用

时间:2014-06-30 20:01:28

标签: ruby-on-rails macos ruby-on-rails-4

今天,我将我的macOS x更新为Mavericks,而我在rails上的项目并不起作用。 当我使用命令

运行我的项目时
  

rails服务器

显示以下错误:

  

/Users/Jarvis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in   require': dlopen(/Users/Jarvis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin12.0/digest/sha1.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
Referenced from: /Users/Jarvis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin12.0/digest/sha1.bundle Reason: image not found - /Users/Jarvis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin12.0/digest/sha1.bundle from /Users/Jarvis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
需要&#39;从   /Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bundler/definition.rb:1:in   <top (required)>' from /Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bundler.rb:153:in 定义&#39;从   /Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bundler.rb:116:in   setup' from /Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bundler/setup.rb:7:in &#39;从   /Users/Jarvis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in   require' from /Users/Jarvis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in 需要&#39;从   /Users/Jarvis/Documents/Projects/Vincubo/vincubo/config/boot.rb:4:in   <top (required)>' from bin/rails:7:in require_relative&#39;从   bin / rails:7:在`&#39;

1 个答案:

答案 0 :(得分:0)

这取决于您升级的OSX版本。

但基本上,您应该使用rvm重新安装ruby版本