首先是配置sass的各種依賴項,結(jié)果用的是ruby的1.9.3版而無法編譯sass,沒辦法,只能更新ruby的版本了.
更新ruby
如果不是用rvm管理版本的,只能手工進行升級了,而我是apt-get install 過來的.于是我便開始安裝rvm進行ruby管理
安裝rvm,你首先得安裝curl,所幸在學python的時候就已經(jīng)安裝過curl了,于是乎
\curl -L https://get.rvm.io | bash -s stable
安裝成功~,讓他馬上生效吧(你應(yīng)當將這段代碼寫進啟動運行中)!
source ~/.rvm/scripts/rvm
來來來,安裝對應(yīng)版本的ruby吧
rvm list
knownrvm install 2.2.0
rvm use 2.2.0
ruby更新成功
邂逅的錯誤:
rvm安裝問題
沒辦法,先生成gpg公鑰吧
gpg --keyserver subkeys.pgp.net --recv BF04FF17
獲取公鑰服務(wù)超時
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這個能用....