Cause
When I installed dlib, a python face recognition library, via brew, all openssl series were upgraded to 1.1.1 series, and when I used require in gem or ruby, I got the following error.
Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
I get this error quite a bit, so I’ll leave this as a reminder.
Coping
As a workaround, I reinstalled it with rbenv and that fixed it.
rbenv uninstall 2.6.2 && rbenv install 2.6.2
Openssl is now 1.1.1, so it looks like the SSL system was reworked during the reinstallation.
Reference sites
- https://qiita.com/tukapai/items/26c60cbd9a28f80b666a
- https://qiita.com/suzukalight/items/1fd68258c4134ad7fc48
- https://qiita.com/khayama/items/16853341ab07f5177104
Finally
It’s pretty tough when these parts take up so much of your time, tears.