Homebrew refusing to link OpenSSL

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

    I have a similar case. I need to install openssl via brew and then use pip to install mitmproxy. I get the same complaint from brew link --force. Following is the solution I reached: (without force link by brew)

    LDFLAGS=-L/usr/local/opt/openssl/lib 
    CPPFLAGS=-I/usr/local/opt/openssl/include
    PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig 
    pip install mitmproxy
    

    This does not address the question straightforwardly. I leave the one-liner in case anyone uses pip and requires the openssl lib.

    Note: the /usr/local/opt/openssl/lib paths are obtained by brew info openssl

提交回复
热议问题