Error running 'make -j2' when installing RVM

女生的网名这么多〃 提交于 2019-12-03 09:04:32

This error occurs when you compile Ruby with clang => https://bugs.ruby-lang.org/issues/7830

Unless you are interested in testing Ruby/clang compatibility you would be better with compiling ruby using gcc-4.2 (see https://bugs.ruby-lang.org/issues/5883 for details)

Skip the --ruby flag from the installer:

\curl -L https://get.rvm.io | bash -s stable

RVM has a command to install all required packages using homebrew:

rvm requirements run force

In case homebrew is not available it will display the list of required packages.

Alternative there is a patch that could make it working with clang, install ruby using:

rvm install 1.9.3-p385 --patch https://bugs.ruby-lang.org/attachments/download/3496/disable-werror.patch -C --disable-werror
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!