Fix in 5 seconds Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

Conclusion

Fix it with brew switch openssl 1.0.2s.

The version depends on the environment, so check the existing version in ls / usr / local / Cellar / openssl Use brew switch openssl version name.

Verification environment

background

I got this error during pod install. It seems that the problem is that the openssl version of ruby is fixed. I tried brew update && brew upgrade referring to other articles, but it didn't fix. There seems to be a solution of "reinstalling ruby", but reinstalling ruby is troublesome. .. ..

I thought, I solved it with haste by the method described in Stack Overflow. https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib

Recommended Posts

Fix in 5 seconds Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
ffi Library not loaded: fix error in /opt/brew/opt/libffi/lib/libffi.6.dylib
rails error Library not loaded
Library not loaded: support for /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)