You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DevOps-Bash-tools/setup/python_mac_upgrade_ssl_fix.sh

29 lines
728 B
Bash

#!/usr/bin/env bash
#
# Author: Hari Sekhon
# Date: 2019-09-16
#
# https://github.com/HariSekhon/DevOps-Bash-tools
#
# License: see accompanying LICENSE file
#
# https://www.linkedin.com/in/HariSekhon
#
# from https://stackoverflow.com/questions/24287239/abort-trap-6-when-running-a-python-script
set -euo pipefail
sudo=""
[ $EUID -eq 0 ] || sudo=sudo
#brew update && brew upgrade && brew install openssl
cd /usr/local/Cellar/openssl/*/lib
sudo cp -- libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/local/lib/
cd /usr/local/lib
[ -f libssl.dylib ] ||
$sudo ln -s -- libssl.1.0.0.dylib libssl.dylib
[ -f libcrypto.dylib ] ||
$sudo ln -s -- libcrypto.1.0.0.dylib libcrypto.dylib
#pip3 install --upgrade packagename