Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fix missing openssl files in catalina
#!/bin/bash
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/openssl/1.0.2t/lib
sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.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.0.0.dylib libssl.dylib
sudo ln -s libcrypto.1.0.0.dylib libcrypto.dylib
@llbbl

This comment has been minimized.

Copy link
Owner Author

llbbl commented Oct 15, 2019

@hulleyrob

This comment has been minimized.

Copy link

hulleyrob commented Oct 29, 2019

Many thanks nothing like doing an upgrade and finding all your automated scripts in Cron stop working.

@etiennedreyer

This comment has been minimized.

Copy link

etiennedreyer commented Nov 6, 2019

Awesome, thanks! The sym-linking procedure worked for me using openssl 1.1 from macports.

@sosolidkk

This comment has been minimized.

Copy link

sosolidkk commented Nov 7, 2019

Thank you! Fixed my problem with python 3.7.5 aborting.

@andresvia

This comment has been minimized.

Copy link

andresvia commented Dec 18, 2019

@llbbl you know if this is reported to brew team?

@llbbl

This comment has been minimized.

Copy link
Owner Author

llbbl commented Dec 18, 2019

@andresvia no not sure. Would be better for sure if they could fix this in ruby-land with a brew relink. Would be also interesting to figure out how the version numbers got added to critical openssl dependencies. Hopefully this will stop being a problem for everyone in the coming months.

@andresvia

This comment has been minimized.

Copy link

andresvia commented Dec 18, 2019

All: Probably look at this issue: wbond/asn1crypto#158 and comment: Homebrew/homebrew-core#44996 (comment)

@llbbl

This comment has been minimized.

Copy link
Owner Author

llbbl commented Dec 18, 2019

@andresvia so looks like deleting and/or upgrading asn1crypto to > 1.20 would also fix it? seems like a better approach to patching in some symlinks.

@andresvia

This comment has been minimized.

Copy link

andresvia commented Dec 18, 2019

Yes @llbbl.

There are a lot of solutions out there, I'm going to post what worked for me.

At some point the pip3 command installed asn1crypto as dependency for another pip3 package, as mentioned by maintainer fxcoudert before the asn1crypto package is broken for Catalina before version 1.0.0 but pip3 uses cryptography functions, so pip3 also crashes, so it must be blasted manually.

I did:

mv ~/Library/Python/3.7/lib/python/site-packages/asn1crypto ~/Library/Python/3.7/lib/python/site-packages/nope-asn1crypto-nope

Then I just pip3 installed it again.

pip3 install --upgrade asn1crypto

I had no no more crashes after this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.