Mac OS X 安装ruby环境

1.查看版本

$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

2.查看源

$ gem source -l
*** CURRENT SOURCES ***

https://rubygems.org/

3.更换源

$ gem source -r https://rubygems.org/

https://rubygems.org/ removed from sources

4.添加源

$ gem source -a https://ruby.taobao.org

5.安装compass

$ sudo install comopass

$ compass -v
Compass 1.0.3 (Polaris)
Copyright (c) 2008-2015 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass
posted on 2015-06-09 21:01  Frank.Fan  阅读(395)  评论(0编辑  收藏  举报