LoginSignup
6
6

More than 5 years have passed since last update.

opensslを更新したのにOpenSSL::OPENSSL_VERSIONが古いまま

Last updated at Posted at 2014-04-09

HeartBleed Bugに関連して、opensslをアップデートしてもOpenSSL::OPENSSL_VERSIONが更新されていなかった。

なので、libssl.solibcrypto.soが新しいライブラリを指しているかを確認してみた。

  • ruby 2.1.1
  • rbenv

のケースを記載。rubyのバージョンが違っていたりrvmでもなんとなーく場所はわかるはず。

Macの場合

$ ls -l $RBENV_ROOT/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
$ otool -L $RBENV_ROOT/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle

Linuxの場合

$ ls -l $RBENV_ROOT/versions/2.1.1/lib/ruby/2.1.0/x86_64-linux/openssl.so
$ ldd $RBENV_ROOT/versions/2.1.1/lib/ruby/2.1.0/x86_64-linux/openssl.so
6
6
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
6
6