Skip to content

Instantly share code, notes, and snippets.

@cpavlatos
Forked from llbbl/fix_openssl_catalina.sh
Last active March 14, 2020 19:20
Show Gist options
  • Save cpavlatos/265d5091a89148eec1cfa2d10e200d32 to your computer and use it in GitHub Desktop.
Save cpavlatos/265d5091a89148eec1cfa2d10e200d32 to your computer and use it in GitHub Desktop.
Fix missing links to libcrypto openssl on OSX / Python Crashing
#!/bin/bash
#This is for OpenSSL1.1
#Fixes Python Crashing when Running Ansible
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
echo 'brew install openssl'
brew install openssl
echo 'copy two openssl lib files'
cd /usr/local/Cellar/[email protected]/1.1.1d/lib
sudo cp libssl.1.1.dylib libcrypto.1.1.dylib /usr/local/lib/
cd /usr/local/lib
echo 'backup existing lib files, if they exist'
mv libssl.dylib libssl_bak.dylib
mv libcrypto.dylib libcrypto_bak.dylib
echo 'add symlink to missing openssl libs'
sudo ln -s libssl.1.1.dylib libssl.dylib
sudo ln -s libcrypto.1.1.dylib libcrypto.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment