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

后端 未结 9 1264
独厮守ぢ
独厮守ぢ 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 01:00

    I had the same problem. In my case, for a legacy Rails 2.4 app. It seems brew had updated /usr/local/opt/openssl to symlink to openssl@1.1/1.1.1d.

    After trying several other things, I fixed it by manually updating the symlink /usr/local/opt/openssl to point to the 1.0.2s version that was already on my system:

    MacBook-Pro/usr/local/opt(:|✔) % pwd
    /usr/local/opt
    MacBook-Pro/usr/local/opt(:|✔) % ll openssl*
    lrwxr-xr-x  1 dhempy  admin  24 Feb 19 11:36 openssl -> ../Cellar/openssl/1.0.2s
    lrwxr-xr-x  1 dhempy  admin  28 Feb 19 08:55 openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1d
    

    Hopefully this is one-and-done for me, and I won't have to reapply that symlink after every update.

    0 讨论(0)
  • 2020-12-13 01:01

    This is the process I had to use to fix this issue. I am not sure how to use brew extract correctly.

    We need openssl in order to use wget.

    brew install openssl
    

    Now, download version 1.0.2t and install it.

    wget https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
    brew install openssl.rb
    
    0 讨论(0)
  • 2020-12-13 01:06

    Just switch to 1.0.2t version, using this command:

    brew switch openssl 1.0.2t
    
    0 讨论(0)
提交回复
热议问题