[RUBY] Library not loaded: support for /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)

rubocop cannot be used

When I tried to use rubocop, I got an openssl error, so I will write an article in the hope that it will help someone.

$RBENV_VERSION=2.2.10 rubocop hoge_controller.rb
>Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)

Apparently it looks like an openssl error, and the other day when I brew update, it feels like openssl has been updated to 1.1. It seems that the above error occurred because 1.1 cannot be used with my Ruby version.

Solution

I was able to solve it by switching the version with the following command.

brew switch openssl 1.0.2t

that's all.

Recommended Posts

Library not loaded: support for /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
rails error Library not loaded
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
Support for CheckStyle "Do not use inline conditions"