. Advertisement .
..3..
. Advertisement .
..4..
I get the error: dyld: library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib when I try to run the program below:
cd /usr/local/opt/readline/lib
ln libreadline.8.0.dylib libreadline.6.2.dylib
The error appears the system notifies as follows:
/Users/TuzsNewMacBook/.rvm/gems/ruby-2.3.7/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require':
dlopen(/Users/TuzsNewMacBook/.rvm/rubies/ruby-2.3.7/lib/ruby/2.3.0/x86_64-darwin18/readline.bundle, 9):
Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)
I tried to solve it with another sample. I got the reference in the community forum, but it still returned an invalid result. If someone knows the solution, please give me the support. Thanks!
The cause:
This error happens because you are trying to search
/usr/local/opt/readline/lib/libreadline.7.dylib
but it is not in your folder.Solution:
You can fix this error by installing your Ruby version again by this command:
If you do as my above suggestions, the error will not exist.
The error appears to have occurred when you tried to search for
/usr/local/opt/readline/lib/libreadline.7.dylib
.Did you try to symlink it?
It could be something like:
It worked on macOS Mojave with ruby 2.5.3p105, Rails 5.2.2, and it worked.