1. 版本信息
macOS 14 以上, M 芯片
allen@alleniMac ~ % which openssl
/usr/local/bin/openssl
allen@alleniMac ~ % openssl -v
OpenSSL 3.3.0 9 Apr 2024 (Library: OpenSSL 3.3.0 9 Apr 2024)
2. 问题
Error running '__rvm_make -j8',
please read /Users/deepak/.rvm/log/1704350883_ruby-3.3.0/make.log
Error running '__rvm_make -j*
' 问题都差不多
3. 执行的日志
allen@alleniMac ~ % rvm install ruby-3.0.0 --default
ruby-3.0.0 - #removing src/ruby-3.0.0 - please wait
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/14.4/x86_64/ruby-3.0.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
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/allen/.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/allen/.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/allen/.rvm/log/1713950411_ruby-3.0.0/make.log
There has been an error while running make. Halting the installation.
4. 根本原因
由于requirements/autolibs提供OpenSSL v3的方式,Rvm无法找到OpenSSL v1.1,并且Ruby不能与OpenSSL 3一起使用。
5. 解决方案
rvm install ruby-3.0.0 -C --with-openssl-dir=/usr/local/etc/openssl@3