顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

2014年11月5日 星期三

裝設vim-airline font

在安裝vim-airline時有遇到幾個問題,在這裡做個整理。

1. 在terminal中沒有跑出顏色

解決:

在~/.vimrc中寫入下面的程式碼
if $COLORTERM == 'gnome-terminal'
set t_Co=256
endif

參考:

http://askubuntu.com/a/126

2. 安裝之後沒有出現airline

解決:

在~/.vimrc中寫入下面的程式碼
set laststatus=2

參考:

https://github.com/bling/vim-airline#configuration

3.在安裝之後無法完整顯示

解決:

照著https://powerline.readthedocs.org/en/master/installation/linux.html#fonts-installation所給的指示做。

注意:

A. ~/.fonts如果沒有此目錄的話,自己新增(mkdir ~/.fonts)
B. ~/.config/fontconfig/conf.d/如果沒有此目錄的話,新增(mkdir -p ~/.config/fontconfig/conf.d/)

2014年11月3日 星期一

Jekyll問題排除

這裡列出幾個在使用Jekyll的時候所遇到的問題,供日後參考。


問題一:在gem install jekyll時遇到ERROR: Failed to build gem native extension.

解決:安裝ruby 1.9.1(sudo apt-get install ruby1.9.1-dev)

參考:
http://hire.chrisjlee.net/node/229
http://jekyllrb.com/docs/troubleshooting/#installation-problems

問題二:在gem install jekyll時遇到ERROR: While executing gem ... (NoMethodError) undefined method `name' for #<RDoc::RubyToken::TkLPAREN:...>

解決:安裝rdoc(gem install rdoc)

參考:
https://github.com/jekyll/jekyll/issues/1560

問題三:在執行jekyll時遇到Could not find a JavaScript runtime.

解決:安裝nodejs(sudo apt-get install nodejs)

參考:
http://jekyllrb.com/docs/troubleshooting/#could-not-find-a-javascript-runtime-execjsruntimeunavailable
http://stackoverflow.com/a/9333316