Can't install Ruby on Mountain Lion with rvm

早过忘川 提交于 2019-12-04 16:33:52

It's probably due to the fact that recent versions of OS X use the LLVM instead of defaulting to the GCC compiler.

Try this:

brew update
brew tap homebrew/dupes
brew install apple-gcc42

to install the GCC compiler. Then:

rvm install 1.9.3 --with-gcc=clang`

EDIT: If the previous solution doesn't work, try giving the following a try before running rvm install 1.9.3:

export CC=/usr/local/bin/gcc-4.2

EDIT 2: The following github page outlines the issue and multiple solutions, added to this post for documentation purposes: Installation tips for RVM/Ruby on OSX 10.8 Mountain Lion

Remear

This has detailed instructions on exactly what you need to do.

RVM keeps setting up ruby 1.8.7 instead of the latest version 1.9 in MAC

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!