rails c出错

/Users/fm/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `require': dlopen(/Users/fm/.rvm/rubies/ruby-2.3.1/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/fm/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle
Reason: image not found - /Users/fm/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle

解决

brew rm -f readline


brew uninstall --ignore-dependencies readline

brew install readline

brew link readline --force

以上命令都不行了之后
rvm reinstall 2.3.1
解决

引用:http://stackoverflow.com/questions/25591527/rails-console-doesnt-load-due-to-libreadline

Comments

comments powered by Disqus