RVM/rbenv RVM 安装 Ruby 2.0 (OS X 10.8)

hpyhacking · March 11, 2013 · Last by zeeler replied at April 08, 2013 · 8770 hits
brew update
brew install openssl libxml2 libxslt libksba sqlite
rvm install ruby-2.0.0 --skip-openssl --with-opt-dir="`brew --prefix openssl`"

ref: https://github.com/wayneeseguin/rvm/issues/1290

先用 octopress 试验一下

rvm get head 然后直接 rvm install ruby-2.0.0-p0 --docs 就可以了,新的 rvm 会调用 brew 的...

#1 楼 @luikore 试过这方法,还是出错

#2 楼 @hpyhacking ... 无报错信息不知真相... 难道之前替换过什么东西了?

#3 楼 @luikore 第一次装的时候也是直接rvm install 2.0.0这么装的,但在第一步编译 openssl 时就出错了,好像是个路径的错误,天知道~ 现在好了,按照require自己先装一下也不错。

#1 楼 @luikore rvm get head 遇到问题,Google 无果,求解「curl: (7) Failed to connect to 0.0.0.169: No route to host」

#5 楼 @linsk 换个 dns 试试?

#6 楼 @luikore

谢谢你,我使用的是 V2ex DNS 刚刚切换到 Google public DNS 清空 DNS 缓存以后这个问题依然存在。

Wifi 换到 3G 热点以后也是这个问题。唉。

vpn 下试试,估计网络有问题吧,或者有些资源被墙了

You need to Sign in before reply, if you don't have an account, please Sign up first.