% rvm install 3.0.0 --with-openssl-dir='brew --prefix openssl'
ruby-3.0.0 - #removing src/ruby-3.0.0 - please wait
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/mozhuai/.rvm/rubies/ruby-3.0.0, this may take a while depending on your cpu(s)...
ruby-3.0.0 - #downloading ruby-3.0.0, this may take a while depending on your connection...
ruby-3.0.0 - #extracting ruby-3.0.0 to /Users/mozhuai/.rvm/src/ruby-3.0.0 - please wait
ruby-3.0.0 - #configuring - please wait
ruby-3.0.0 - #post-configuration - please wait
ruby-3.0.0 - #compiling - please wait
Error running '__rvm_make -j8',
please read /Users/mozhuai/.rvm/log/1710786719_ruby-3.0.0/make.log
There has been an error while running make. Halting the installation.
解决办法
运行:rvm install ruby-3.3.0 -C --with-openssl-dir=/usr/local/etc/openssl@3