0
1

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 5 years have passed since last update.

[Mac]Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib error 解決法

Posted at

起きたこと

Ruby プロジェクトで bundler 実行でエラー

(それ以外に、openssl に依存する場合は起こりうる)

$ bundle ./
...
Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)
Referenced from: /Users/user/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin14/openssl.bundle
Reason: image not found - /Users/user/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin14/openssl.bundle

openssl 1.0.x がインストールされていないときに発生。

解決法

openssl v1.0.x をレポジトリからインストール しbrew switch

$ brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
$ brew switch openssl 1.0.2t

確認する

$ brew list --versions openssl
openssl 1.0.2t
$ ls /usr/local/Cellar/openssl/
1.0.2t
$ /usr/local/opt/openssl/bin/openssl version
OpenSSL 1.0.2t  10 Sep 2019

通った。

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?