今天,我将我的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)
需要'从 /Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bundler/definition.rb:1:in
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<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:insetup' 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:inrequire' 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;
答案 0 :(得分:0)
这取决于您升级的OSX版本。
但基本上,您应该使用rvm重新安装ruby版本