升级到最新的 macOS(Monterey)后,我无法安装新的 ruby 版本(3.0.2)。有没有人遇到过他们能够解决的类似问题?
Downloading openssl-1.1.1l.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1
Installing openssl-1.1.1l...
Installed openssl-1.1.1l to /Users/hoquanganh/.rbenv/versions/3.0.2
Downloading ruby-3.0.2.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.2.tar.gz
Installing ruby-3.0.2...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.1 using ruby-build 20211227)
我尝试过的几种方法,但对我不起作用
RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 3.0.2
RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl@1.1`" rbenv install 3.0.2
如果您有任何想法来完成这项工作,请告诉我,谢谢。