Ruby macOS 安装 Ruby 报错

aini · 2018年10月27日 · 最后由 Xenofex 回复于 2018年11月07日 · 2278 次阅读

Mac 运行 rvm install 2.5.1 报错如下

Error running './configure --prefix=/Users/shan/.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/shan/.rvm/log/1540623603_ruby-2.5.1/configure.log
There has been an error while running configure. Halting the installation.

还有一条黄色的警告

No binary rubies available for: osx/10.13/x86_64/ruby-2.5.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.

please read /Users/shan/.rvm/log/1540623603_ruby-2.5.1/configure.log

这个日志你可以分析下

需要 登录 后方可回复, 如果你还没有账号请 注册新账号