Install OpenSSL via Homebrew on macOS
Since it is required. Note that we do *not* unsafely link the OpenSSL libraries into the system folders, as we instead patch .NET Core's libraries to find OpenSSL in the installed location.
This commit is contained in:
parent
6b582851d6
commit
e337d93720
|
@ -98,6 +98,19 @@ case "$OSTYPE" in
|
|||
esac
|
||||
;;
|
||||
darwin*)
|
||||
if hash brew 2>/dev/null; then
|
||||
if [[ ! -d $(brew --prefix openssl) ]]; then
|
||||
echo "Installing OpenSSL with brew..."
|
||||
if ! brew install openssl; then
|
||||
echo "ERROR: OpenSSL failed to install! Crypto functions will not work..." >&2
|
||||
# Don't abort because it is not fatal
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "ERROR: brew not found! OpenSSL may not be available..." >&2
|
||||
# Don't abort because it is not fatal
|
||||
fi
|
||||
|
||||
echo "Installing $package with sudo ..."
|
||||
sudo installer -pkg "./$package" -target /
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue