RVM ruby installation errors - Mac

為{幸葍}努か 提交于 2019-11-28 20:38:44
rvm install 1.9.3 --with-gcc=clang

If you have a new install of XCode, you'll need to:

1.) open it

2.) go to: Preferences>Downloads>Command Line Tools

3.) install the Command Line Tools

4.) then run the following in Terminal:

rvm install 1.9.3 --with-gcc=clang

Did you install libyaml package before installing ruby 1.8.7?

Since rvm is showing a Error running 'make, you should also install readline package using

rvm pkg install readline

You should install all the necessary rvm packages before installing any version of ruby. If you have installed any version of ruby before installing those packages, you should remove them using

rvm remove 1.8.7
rvm remove 1.9.2
rvm remove 1.9.3

And then install them again using

rvm install 1.8.7
rvm install 1.9.2
rvm install 1.9.3

I used homebrew to install GCC-4.2, then symlinked it from /usr/local/bin to /usr/bin. This fixed this issue for me.

This is most likely related to the gcc you are using. Have you tired to use non llvm gcc compiler? You will most likely find it under /Xcode4/usr/bin/gcc-4.2

so:

$> export CC=/Xcode4/user/bin/gcc-4.2 && rvm install 1.8.7

Hope this helps.

Consider installing OSX GCC, it will solve many of the problems occurred from Xcode installation.

JJ Welch

I had to manually download the file yaml-0.1.4.tar.gz and place it in the proper directory for rvm.

The failure for me was curl could not get the file and the error had to do with a failed certificate check. I have GCC-10.7-v2.pkg installed so the C compiler can do its work because my newer version of Xcode did not have GCC included.

I resolved it by installing https://github.com/thoughtbot/laptop Every time I try running ruby on rails, I get stuck and then give up. This time I made it

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