1
0

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.

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib となった時のメモ

Posted at

メモ

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
となってしまってコマンドが動作しない時(私の場合はmongoexportが動かなかった)の対処法
どうやらOpenSSLのバージョンの問題らしい
久々に brew upgrade をした後に発生

issue

This error is happening because macOS decided to drop OpenSSL and switched to LibreSSL. Furthermore, macOS Homebrew switched from OpenSSL v.1.0 to v1.1, breaking many other apps that are dependent on OpenSSL v1.0. The solution below may or may not work for other apps, be sure to check with their respective maintainers to confirm.

上記のissueにも解決方法は書いてあったが、opensslをuninstallしてビルド済みのものを入れ直すという様な方法だったので少し抵抗があり、他に無いか探してみた

dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib

上記のリンク内にもopensslのバージョンが1.0.2sやら1.0.2qやら出てくるが、自分の場合は1.0.2tだった

brew switch openssl 1.0.2t

上記のコマンドを実行して存在しないバージョンだと下記の様なエラーメッセージが表示されるので、そのバージョンを指定すれば良い様である

openssl's installed versions: 1.0.2t

以上で解決

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?