Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib when running nginx and mysql after macOS upgrade to Catalina

I have updated my development enviroment to the latest version of OSX Catalina. Then nginx and mysql server has stopped working. When I try to run any of these I get the same error:

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/nginx
  Reason: image not found

I´m reading a lot of posts and they say mostly the same: Openssl is a dependency library with the new OsX. Fix, looks pretty ease, removed the openssl installation and re-installed the latest version, which is [email protected]. I have already done it, but however I´m still getting the same error.

I think it´s because according to the error message, both nginx and mysql are expecting the version 1.0.0 and I´m installing the latest 1.1. I have been trying to install the version 1.0 with homebrew, but I´m not able to find it. Is it possible to get this old version? Or should I upgrade my nginx and mysql software versions?

like image 923
Rober Avatar asked Nov 23 '19 12:11

Rober


1 Answers

I had the same issue, not for upgrading to Catalina but because of installing a program which upgrade my version of OpenSSL, so it brokes other apps which depended on OpenSSL. In my case Ruby (2.3.8 with RVM) and MySQL (MariaDb in fact). In the case of Ruby, it was incompatible with the new version of OpenSSL, so I had to install it with pkg depdendencies for RVM

rvm pkg install openssl
rvm reinstall 2.3.8  --with-openssl-dir=$HOME/.rvm/usr

In the case of MySQL I just upgraded it, so it got installed with the new openSSL on my System.

brew upgrade mariadb

Thats solves my issues. I think in your case you could upgrade (or uninstall and reintall) MySQL and Nginx, so they will correctly use the new version of OpenSSL.

(P.D. In the case of MySQL it conserved my databases without problems)

like image 118
eveevans Avatar answered Nov 01 '22 16:11

eveevans