Error while installing ruby2 with rvm

老子叫甜甜 提交于 2019-12-03 22:28:27

try this:

CC=clang rvm reinstall 2.0.0-p0

it will compile but might result in other errors later (I'm working on finding what causes the original issue).

I am running into build errors around miniruby as well on Mac OS X 10.8.2 with XCode 4.6 and brew.

When just trying to run "rvm install 2.0.0" the result looks like this:

https://gist.github.com/polarapfel/5080946

When trying to set CC to /usr/bin/clang, the result looks like this:

https://gist.github.com/polarapfel/5081054

Either way, the result is the same for me.

Here's the funny thing about it: I can build head without a problem. I think 2.0.0p0 is not a clean build on Mac OS X and needs some more work to iron out the kinks.

--

OK, this did it for me: simply running "rvm get stable" got rid of the build problems.

Safari Code

Make sure you're using clang 3.0 with clang -v.
Otherwise, if you're using an older clang version, compile 2.0.0-p0 with gcc 4.2 using:

rvm install ruby --with-gcc=gcc-4.2

I would first remove old ruby attempt:

rvm remove 2.0.0-p0

Also make sure you've got rvm head (not stable):

rvm get head  --autolibs=3

If this should solve the miniruby / enc compile problems, then 2.0.0-p0 is a clean build, but you're using outdated compiler. Installing the latest Xcode doesn't necessarily include the lastest clang version.

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