ruby-on-rails – Rails 5控制台需要macOS Sierra上的readline 6

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – Rails 5控制台需要macOS Sierra上的readline 6前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我只安装了readline 7,我找不到在macOS Sierra上安装版本6的单一方法.这是尝试运行rails c时的错误

/Users/akashagarwal/.rvm/gems/ruby-2.3.0@global/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require’: dlopen(/Users/akashagarwal/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle,9): Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
Referenced from: /Users/akashagarwal/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle
Reason: image not found – /Users/akashagarwal/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle

解决方法

我有一个类似的问题,并解决了:

ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib

来源:https://github.com/rails/rails/issues/26658

猜你在找的Ruby相关文章