Home Articles

更新macOS x时损坏的Rails引用

Asked
Viewed 1448 times
0

今天,我将我的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):未加载库:/usr/local/opt/openssl/lib/libcrypto.1.0.0 .dylib(LoadError)引用自:/Users / Javis / .rvm / rubies / ruby-2.1.1 / lib / ruby / 2.10 / x86_64-Darwin12.0 / digest / sha1.bundle原因:找不到图像 - /用户/ Jarvis / .rvm / rubies / ruby-2.1.1 / lib / ruby / 2.1.0 / x86_64-darwin12.0 / digest / sha1.bundle来自/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/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:来自/ Users / Jarvis /的定义'来自/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bundler.rb:116:in setup' . rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.2/lib/bun dler / setup.rb:7:in'from /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 require'from / Users / Jarvis / Documents / Projects / Vincubo / vincubo / config / boot.rb:4:in bin中的<top(required)>'bin / rails:7:inrequire_relative'来自bin / rails:7:in''

1 Answer

  • 0

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

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

Related