LoginSignup
0
0

More than 3 years have passed since last update.

macOS Catalina に Ruby 2.3.0 を rbenv でインストールする

Posted at

手順

特に難しいことはありません。OpenSSLの1.0系をインストールして rbenv にそれを参照させます

brew install rbenv/tap/openssl@1.0

OpenSSL をインストールするとコンパイラーや pkg-config に参照させるべきパスを教えてくれるのでそれを環境変数にセットしながら rbenv でインストールします

LDFLAGS="-L/usr/local/opt/openssl@1.0/lib" CPPFLAGS="-I/usr/local/opt/openssl@1.0/include" PKG_CONFIG_PATH="/usr/local/opt/openssl@1.0/lib/pkgconfig" RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl@1.0" rbenv install 2.3.0

Ruby 2.3.0 縛りの Rails プロダクトを手元で動かす必要があったのでインストールしました。
2.3系はサポートが終了しているので特別な事情が無い限り使わない方が良いですね。

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