Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Solution 1:
the error seems to be thrown when searching for /usr/local/opt/readline/lib/libreadline.7.dylib
.
Have you tried to symlink that?
So something like:
cd /usr/local/opt/readline/lib
ln -s libreadline.8.0.dylib libreadline.7.dylib
Just tried that on macOS Mojave, ruby 2.5.3p105 and Rails 5.2.2 and worked.
Solution 2:
Reinstalling my Ruby version seems to have fixed it:
rvm reinstall 2.3.7