Python crashing on MacOS 10.15 Beta (19A582a) with “/usr/lib/libcrypto.dylib”

前端 未结 13 565
星月不相逢
星月不相逢 2020-12-12 15:47

I ran my Django project with new macOS Catalina and was running fine.
I installed oh_my_zsh then I tried to run the same project it is crashing with the following errors

13条回答
  •  既然无缘
    2020-12-12 16:19

    r.xuan from this Apple Dev thread identified the steps of a workaround for the error Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI. by replacing the libssl.dylib and libcrypto.dylib links in /usr/local/lib with links to libs from Homebrew's install of openssl.

    The steps are:

    Get fresh libs

    1) brew update && brew upgrade && brew install openssl

    2) cd /usr/local/Cellar/openssl/1.0.2t/lib

    3) sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/local/lib/

    Backup the old ones

    4) cd /usr/local/lib

    5) mv libssl.dylib libssl_bak.dylib

    6) mv libcrypto.dylib libcrypto_bak.dylib

    Create new links

    7) sudo ln -s libssl.1.0.0.dylib libssl.dylib

    8) sudo ln -s libcrypto.1.0.0.dylib libcrypto.dylib

提交回复
热议问题