title: BUILD FAILED (macOS 12.1 using ruby-build 20211203 (ruby 3.0.2) macOS Monterey
body: <p>After upgrading to the latest macOS (Monterey), I was unable to install the new ruby version (3.0.2). Has anyone had a similar issue that they were able to resolve?</p>
  <pre><code>Downloading openssl-1.1.1l.tar.gz...
  -&gt; 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...
  -&gt; 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)
  
  </code></pre>
  <p>A few ways that I have tried but it didn't work for me</p>
  <p><code>RUBY_CFLAGS=&quot;-Wno-error=implicit-function-declaration&quot; rbenv install 3.0.2</code></p>
  <pre><code>RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=`brew --prefix openssl@1.1`&quot; rbenv install 3.0.2
  </code></pre>
  <p>If you have any ideas to make this work, please let me know, thanks.</p>