今天安装Compass,居然老是提示网络问题,后来根据错误提示,发现带https的域名是访问不了的,是是SSL问题。后来搜了一下,在stackoverflow找到一个人说,将https的去掉就好了。具体步骤如下:

1. gem sources - check sources

2. gem sources -a ​​http://rubygems.org/​​ - will add http source

3. gem sources –remove ​​https://rubygems.org/​​ - will remove the https source

我试下了,将https除掉后,然后再执行

gem install compass

就成功了。