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.
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