Help us understand the problem. What is going on with this article?

rbenv, openssl 周りでRuby2.3.1のインストールにこけるので、rvm使ってみる

なぜ使うか?

rubyのv2.3.1がrbenvで入らないから...

  • v2.4.0からopenssl@1.1が使えるっぽいが、2.3.1は使えない。かといって、openssl(1.0.2)を使用して、installすることも難しい。

  • linkを貼ろうとしても貼れない。

  • PATHを通してやろうとしてもできなさそう。

CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.5.0-dev

これも無理そう。opensslとopenssl@1.1どっちも使っているっぽい。

$ brew list
openssl openssl@1.1

修正コマンド

$ curl -sSL https://get.rvm.io | bash
$ source /home/bushidoyasu/.rvm/scripts/rvm
$ rvm pkg install openssl
$ rvm reinstall ruby-2.3.1 --with-openssl-dir=$HOME/.rvm/usr 
$ ruby -v
=> ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin18]

ディレクトリ毎で切り替え

$ rvm use ruby-2.3.1

終わり。メモ残してくれた人に感謝。

参考資料

rvm.io
Rubyのインストールで「undefined symbol: SSLv2_method」エラー

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away