无法在 macOS Mojave 10.14.2 中使用 RVM 安装任何 ruby​​ 版本

无法在 macOS Mojave 10.14.2 中使用 RVM 安装任何 ruby​​ 版本

升级到 Mojave 10.14.2 后,我尝试使用 RVM 安装任何 ruby​​ 版本。

我收到与 OpenSSL 相关的以下错误消息。

我安装了最新的命令行工具(Command_Line_Tools_macOS_10.14_for_Xcode_10.1)和 Xcode。

rvm install 2.5.1 Warning, new version of rvm available '1.29.7', you are using older version '1.29.6'. You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc ruby-2.5.1 - #removing src/ruby-2.5.1.. Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.14/x86_64/ruby-2.5.1. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Certificates bundle '/usr/local/etc/[email protected]/cert.pem' is already up to date. Requirements installation successful. Installing Ruby from source to: /Users/macuser/.rvm/rubies/ruby-2.5.1, this may take a while depending on your cpu(s)... ruby-2.5.1 - #downloading ruby-2.5.1, this may take a while depending on your connection... ruby-2.5.1 - #extracting ruby-2.5.1 to /Users/macuser/.rvm/src/ruby-2.5.1..... ruby-2.5.1 - #applying patch /Users/macuser/.rvm/patches/ruby/2.5.1/libressl_2_7.patch. ruby-2.5.1 - #configuring......................... Error running './configure --prefix=/Users/macuser/.rvm/rubies/ruby-2.5.1 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/[email protected] --disable-install-doc --enable-shared', please read /Users/macuser/.rvm/log/1546514340_ruby-2.5.1/configure.log There has been an error while running configure. Halting the installation.

在 configure.log 中收到以下消息:

checking size of long long... configure: error: in /Users/macuser/.rvm/src/ruby-2.5.1': configure: error: cannot compute sizeof (long long) See config.log' for more details

答案1

这太疯狂了。我试过的所有办法都不管用,除了让开路/usr/local/include/。因人而异。

相关内容