アプリなどを開発するブログ

React Native / Swift / Ruby on Railsなどの学習メモ。


brew link openssl --force が失敗した時の対処法

    $ brew install openssl
    $ brew link openssl --force
    Warning: Refusing to link: openssl
    Linking keg-only openssl means you may end up linking against the insecure,
    deprecated system OpenSSL while using the headers from Homebrew's openssl.
    Instead, pass the full include/library paths to your compiler e.g.:
      -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

.zshrcに以下を追加してパスを通せばOK

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