macos ldを解決します:-lcryptoのライブラリが見つかりません



Solve Macos Ld Library Not Found



主な理由は、ldflagが正しく設定されていないため、パスが見つからないことです。

brew install openssl brew unlink openssl && brew link openssl --force echo 'export PATH='/usr/local/opt/root@xxxxx/bin:$PATH'' >> ~/.zshrc export LDFLAGS='-L/usr/local/opt/root@xxxxx/lib' export CPPFLAGS='-I/usr/local/opt/root@xxxxx/include' export PKG_CONFIG_PATH='/usr/local/opt/root@xxxxx/lib/pkgconfig'

後でインストールします。