dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib

后端 未结 9 1263
独厮守ぢ
独厮守ぢ 2020-12-13 00:14

Using electron-builder to build Windows app, When signing up, I got this error :

dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
          


        
相关标签:
9条回答
  • 2020-12-13 00:47

    For me, re-installing openssh (not openssl) was the only solution.

    brew remove openssh
    brew install openssh
    
    0 讨论(0)
  • 2020-12-13 00:48

    Thanks unifreak, I fixed this problem on macOS v10.11.6 at Tue Apr 28 2020 again.

    REF: https://stackoverflow.com/a/59224109/686105

    1. Update homebrew index and upgrade. (option)

      [ chusiang@osx_el_capitan ~ ]
      $ brew update && brew upgrade
      
    2. Try to remove the openssl@1.1.

      [ chusiang@osx_el_capitan ~ ]
      $ brew uninstall openssl@1.1
      Error: Refusing to uninstall /usr/local/Cellar/openssl@1.1/1.1.1g
      because it is required by ansible-lint, atk, cairo, gdk-pixbuf, glib, gnupg, gnutls, gobject-introspection, gsettings-desktop-schemas, gtk+3, gtk-doc, harfbuzz, ipmitool, ipython, irssi, itstool, krb5, libevent, libfido2, libpq, libssh, libssh2, libxml2, macvim, meson, nmap, openssh, pango, pgcli, postgresql, python, python@2, python@3.8, ruby, rust, s3cmd, sdcv, sphinx-doc, sshuttle, tcpdump, tmate, tmux, travis, unbound, vim, w3m, wget and zenity, which are currently installed.
      You can override this and force removal with:
        brew uninstall --ignore-dependencies openssl@1.1
      
    3. Remove the openssl@1.1 with --ignore-dependencies args.

      [ chusiang@osx_el_capitan ~ ]
      $ brew uninstall --ignore-dependencies openssl@1.1
      Uninstalling /usr/local/Cellar/openssl@1.1/1.1.1g... (8,052 files, 18.4MB)
      
    4. Install the specific version of openssl v1.0.0.

      [ chusiang@osx_el_capitan ~ ]
      $ brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
      
    5. Lock the openssl version with v1.0.0.

      [ chusiang@osx_el_capitan ~ ]
      $ brew pin https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
      
    6. Add this openssl into $PATH.

      [ chusiang@osx_el_capitan ~ ]
      $ echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
      
    7. Apply this change of $PATH.

      [ chusiang@osx_el_capitan ~ ]
      $ source ~/.bash_profile
      
    8. DONE.

      [ chusiang@osx_el_capitan ~ ]
      $ openssl version
      OpenSSL 1.0.2t  10 Sep 2019
      

    Finally, the ssh / git / ansible were back !

    0 讨论(0)
  • 2020-12-13 00:48

    Here's what worked for me

    brew update && brew upgrade
    brew uninstall --ignore-dependencies openssl 
    brew install openssl
    
    0 讨论(0)
  • 2020-12-13 00:52

    I try to uninstall openssl and reinstall openssl, It worked.

    brew remove openssl
    brew install openssl
    
    0 讨论(0)
  • 2020-12-13 00:55

    If you are in MacOS 10.15 (Catalina), try this (reinstall openssl):

    brew update && brew upgrade
    brew uninstall openssl
    brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
    
    0 讨论(0)
  • 2020-12-13 00:59

    Reinstalling watchman with brew solved the issue for me :

    brew remove watchman

    brew install watchman

    I hope it helps,

    0 讨论(0)
提交回复
热议问题