58
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ld: library not found for -lssl で mysql2が Mac OS Mojave でインストールできなかった時のメモ

Last updated at Posted at 2019-01-15

新しくMacbookを購入してmysql 0.4.10 をインストールする際にエラーが出たので解決方法をメモとして残します。

エラー

ld: library not found for -lssl
linker command failed with exit code 1 (use -v to see invocation)

解決法

XCodeをインストール後、下記コマンドを走らせると治りました。

export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
58
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
58
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?