1
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 3 years have passed since last update.

MacOS 11.2でruby2.2が入らない問題

Last updated at Posted at 2021-02-18

結論

brew install rbenv/tap/openssl@1.0
export optflags="-Wno-error=implicit-function-declaration"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.0/lib/pkgconfig:/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.0/include -I/usr/local/opt/readline/include"                   
export LDFLAGS="-L/usr/local/opt/openssl@1.0/lib -L/usr/local/opt/readline/lib"
export RUBY_CONFIGURE_OPTS='--with-openssl-dir=/usr/local/opt/openssl@1.0'

理由

その1

openssl@1.0問題

詳細はこちら
https://qiita.com/kazutosato/items/9c4ff7711ca992dd67e5

その2

11.4(Bug Sur)での問題

詳細はこちら
https://stackoverflow.com/questions/65325136/problem-when-installing-ruby-2-2-9-on-mac-big-sur-m1

その他

Dockerでいいじゃんという話は無し
※OSのバージョンとToolのバージョンをまちがえました

1
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
1
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?