我需要为我的 React Native 应用程序安装 ruby 2.7.5,但无法通过 rvm 安装 2.7.5。我尝试了很多方法来安装任何 ruby 版本,最终出现此配置错误。
Error running './configure --prefix=/Users/myname/.rvm/rubies/ruby-2.1.1 --disable-install-doc --enable-shared',
please read /Users/myname/.rvm/log/1672107647_ruby-2.1.1/configure.log
There has been an error while running configure. Halting the installation.
Run Code Online (Sandbox Code Playgroud)
这是配置日志
configure: WARNING: you should use --build, --host, --target
checking for ruby... /usr/bin/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... arm-apple-darwin22.2.0
checking host system type... arm-apple-darwin22.2.0
checking target system type... arm-apple-darwin22.2.0
checking whether the C compiler works... yes
checking for C compiler default output file name... …Run Code Online (Sandbox Code Playgroud)