Skip to content

Instantly share code, notes, and snippets.

Last active April 23, 2022 13:41
What would you like to do?
fix missing openssl files in catalina
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
echo 'brew install openssl'
brew install openssl@1.1
echo 'backup existing lib files, if they exist'
if [ -f /usr/local/lib/libssl.dylib ]; then
mv /usr/local/lib/libssl.dylib /usr/local/lib/libssl_bak.dylib
if [ -f /usr/local/lib/libcrypto.dylib ]; then
mv /usr/local/lib/libcrypto.dylib /usr/local/lib/libcrypto_bak.dylib
# Leaving some commands to check directory contents
# ls -al /usr/local/Cellar/openssl@1.1/1.1.1d/lib
# ls -al /usr/local/lib/libssl* && ls -al /usr/local/lib/libcrypto*
echo 'add symlink to missing openssl libs'
if [ -f /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libssl.1.1.dylib ]; then
sudo ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libssl.1.1.dylib /usr/local/lib/libssl.dylib
if [ -f /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libcrypto.1.1.dylib ]; then
sudo ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libcrypto.1.1.dylib /usr/local/lib/libcrypto.dylib
Copy link

cd /usr/local/lib
ln -sn ../Cellar/openssl@1.1/1.1.1g/lib/libcrypto.1.1.dylib libcrypto.dylib
ln -sn ../Cellar/openssl@1.1/1.1.1g/lib/libssl.1.1.dylib libssl.dylib

would be enough, no need to copy

You save my day, thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment