Homebrew refusing to link OpenSSL

前端 未结 15 2461
南旧
南旧 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:23

    None of these solutions worked for me on OS X El Capitan 10.11.6. Probably because OS X has a native version of openssl that it believes is superior, and as such, does not like tampering.

    So, I took the high road and started fresh...


    Manually install and symlink

    cd /usr/local/src  
    
    • If you're getting "No such file or directory", make it:

      cd /usr/local && mkdir src && cd src

    Download openssl:

    curl --remote-name https://www.openssl.org/source/openssl-1.0.2h.tar.gz
    

    Extract and cd in:

    tar -xzvf openssl-1.0.2h.tar.gz
    cd openssl-1.0.2h
    

    Compile and install:

    ./configure darwin64-x86_64-cc --prefix=/usr/local/openssl-1.0.2h shared
    make depend
    make
    make install
    

    Now symlink OS X's openssl to your new and updated openssl:

    ln -s /usr/local/openssl-1.0.2h/bin/openssl /usr/local/bin/openssl
    

    Close terminal, open a new session, and verify OS X is using your new openssl:

    openssl version -a
    

提交回复
热议问题