Homebrew refusing to link OpenSSL

前端 未结 15 2440
南旧
南旧 2020-11-22 03:51

I\'m on: OSX 10.11.6, Homebrew version 0.9.9m OpenSSL 0.9.8zg 14 July 2015

I\'m trying to play with with dotnetcore and by following their instructions,

I\'

相关标签:
15条回答
  • 2020-11-22 04:40

    By default, homebrew gave me OpenSSL version 1.1 and I was looking for version 1.0 instead. This worked for me.

    To install version 1.0:

    brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
    

    Then I tried to symlink my way through it but it gave me the following error:

    ln -s /usr/local/Cellar/openssl/1.0.2t/include/openssl /usr/bin/openssl
    ln: /usr/bin/openssl: Operation not permitted
    

    Finally linked openssl to point to 1.0 version using brew switch command:

    brew switch openssl 1.0.2t
    Cleaning /usr/local/Cellar/openssl/1.0.2t
    Opt link created for /usr/local/Cellar/openssl/1.0.2t
    
    0 讨论(0)
  • 2020-11-22 04:42

    The solution above from edwardthesecond worked for me too on Sierra

     brew install openssl
     cd /usr/local/include 
     ln -s ../opt/openssl/include/openssl 
     ./configure && make
    

    Other steps I did before were:

    • installing openssl via brew

      brew install openssl
      
    • adding openssl to the path as suggested by homebrew

      brew info openssl
      echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
      
    0 讨论(0)
  • 2020-11-22 04:44

    for me this is what worked...

    I edited the ./bash_profile and added below command

    export PATH="/usr/local/opt/openssl/bin:$PATH"

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