18
19

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.

Railsをinstallしようとしたらopenssl関連ではまった

Posted at

現象

$ gem install rails

をすると以下のエラーがでた。

ERROR:  Loading command: install (LoadError)
	dlopen(/Users/ikemonn/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/ikemonn/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
  Reason: image not found - /Users/ikemonn/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

openssl自体はインストールしてあるのだが、Libraryをロードしている下記のパスがPC上に存在していなかった。

9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

解決策

$ brew link openssl --force

参考

[ruby - OpenSSL, RVM, Brew, conflicting error - Stack Overflow] ( http://stackoverflow.com/questions/21508866/openssl-rvm-brew-conflicting-error )

18
19
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
18
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?