Last active
November 3, 2023 06:05
-
-
Save llbbl/c54f44d028d014514d5d837f64e60bac to your computer and use it in GitHub Desktop.
fix missing openssl files in catalina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'update brew' | |
brew update | |
echo 'upgrade brew' | |
brew upgrade | |
echo 'brew install openssl' | |
brew install [email protected] | |
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 | |
fi | |
if [ -f /usr/local/lib/libcrypto.dylib ]; then | |
mv /usr/local/lib/libcrypto.dylib /usr/local/lib/libcrypto_bak.dylib | |
fi | |
# Leaving some commands to check directory contents | |
# ls -al /usr/local/Cellar/[email protected]/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/[email protected]/1.1.1d/lib/libssl.1.1.dylib ]; then | |
sudo ln -s /usr/local/Cellar/[email protected]/1.1.1d/lib/libssl.1.1.dylib /usr/local/lib/libssl.dylib | |
fi | |
if [ -f /usr/local/Cellar/[email protected]/1.1.1d/lib/libcrypto.1.1.dylib ]; then | |
sudo ln -s /usr/local/Cellar/[email protected]/1.1.1d/lib/libcrypto.1.1.dylib /usr/local/lib/libcrypto.dylib | |
fi |
cd /usr/local/lib ln -sn ../Cellar/[email protected]/1.1.1g/lib/libcrypto.1.1.dylib libcrypto.dylib ln -sn ../Cellar/[email protected]/1.1.1g/lib/libssl.1.1.dylib libssl.dylibwould be enough, no need to copy
This solved my issue perfectly! Thank you
cd /usr/local/lib ln -sn ../Cellar/[email protected]/1.1.1g/lib/libcrypto.1.1.dylib libcrypto.dylib ln -sn ../Cellar/[email protected]/1.1.1g/lib/libssl.1.1.dylib libssl.dylibwould 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
would be enough, no need to copy