配置sass的ruby2.x
首先是配置sass的各种依赖项,结果用的是ruby的1.9.3版而无法编译sass,没办法,只能更新ruby的版本了.
更新ruby
如果不是用rvm管理版本的,只能手工进行升级了,而我是apt-get install 过来的.于是我便开始安装rvm进行ruby管理
安装rvm,你首先得安装curl,所幸在学python的时候就已经安装过curl了,于是乎
\curl -L https://get.rvm.io | bash -s stable
安装成功~,让他马上生效吧(你应当将这段代码写进启动运行中)!
source ~/.rvm/scripts/rvm
来来来,安装对应版本的ruby吧
rvm list
knownrvm install 2.2.0
rvm use 2.2.0
ruby更新成功
邂逅的错误:
rvm安装问题
没办法,先生成gpg公钥吧
gpg --keyserver subkeys.pgp.net --recv BF04FF17
获取公钥服务超时
This is usually caused by your firewall blocking the port 11371. You could unblock the port in your firewall. In case you don't have access to the firewall you could either:
1- Force it to use port 80 instead of 11371
gpg --keyserver keyserver.ubuntu.com:80 --recv-keys 94558F59
2- Alternatively
Find and open the key from the key server.
Copy it's contents into a text file.
Go to System Tool > Preferences > Software Sources > Authentication > Add key, and select the text file created.
这里是原文
我尝试了以下几种方法:
-
翻一下墙:
-
强制端口(这里密钥没改,无碍):
成功的方法是:
gpg --keyserver keyserver.ubuntu.com --recv-keys BF04FF17
好吧,之前的地址被墙了,ubuntu这个能用....