0
0

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 1 year has passed since last update.

`rbenv install 2.5.1`が失敗する

Last updated at Posted at 2023-05-27

TL;DR

この2行を実行すればいい

➜ export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
➜ CPPFLAGS=-DUSE_FFI_CLOSURE_ALLOC rbenv install 2.5.1

➜  export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
➜  CPPFLAGS=-DUSE_FFI_CLOSURE_ALLOC rbenv install 2.5.1                                  
To follow progress, use 'tail -f /var/folders/t0/m8gzjl_n0cl7gmf8pg27fw380000gn/T/ruby-build.20230527180427.6250.log' or pass --verbose
Downloading ruby-2.5.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2
Installing ruby-2.5.1...

WARNING: ruby-2.5.1 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.

ruby-build: using readline from homebrew
ruby-build: using libyaml from homebrew
Installed ruby-2.5.1 to /Users/ricky/.rbenv/versions/2.5.1

背景

数年前のRubyを活用したパッケージを利用したく、ver.2.5.xのRubyをインストールする必要があった。

過去に3.x系のRubyのビルドに苦労したが、どうやらv2.5.x系はまた違う苦労が待っていたようだ

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?