文章目录

1.查看版本

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

2.查看源

1
2
3
4
$ gem source -l
*** CURRENT SOURCES ***
https://rubygems.org/

3.更换源

1
2
3
$ gem source -r https://rubygems.org/
https://rubygems.org/ removed from sources

4.添加源

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

5.安装compass

1
2
3
4
5
6
7
8
$ 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
文章目录