我正在研究rails5项目。我不小心输入了brew upgrade
(我应该先卸载imagemagick然后再安装)
bin/rails c
命令现在不起作用。
环境:
我尝试过:
brew link readline --force
ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib
brew info readline
readline:稳定的8.0.0(瓶装)[仅可放入水壶]
用于命令行编辑的库
/usr/local/Cellar/readline/8.0.0(49个文件,1.5MB)*
从瓶子倒在2019-02-15 17:16:19
但两者仍然没有任何变化,选中mysql.server start
并得到Starting MySQL.......... SUCCESS!
还检查了mysql --version
,得到了mysql Ver 8.0.15 for osx10.12 on x86_64 (Homebrew)
bin/rails s
Sorry, you can't use byebug without Readline. To solve this, you need
to rebuild Ruby with Readline support. If using Ubuntu, try `sudo apt-get
install libreadline-dev` and then reinstall your Ruby.
Traceback (most recent call last):
68: from bin/rails:6:in `<main>'
67: from bin/rails:6:in `require'
66: from
**dlopen(/Users/arthur/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-
darwin16/readline.bundle, 9): Library not loaded:
/usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)
Referenced from:
/Users/arthur/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-
darwin16/readline.bundle
Reason: image not found -
/Users/arthur/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-
darwin16/readline.bundle**
答案 0 :(得分:2)