Mac OS X El Capitan 安裝 Jekyll

安裝Gemjava

## 檢查gem版本
$gem -v

## 更新Gem(提示權限)
$gem update --system
2.0.14
Latest version currently installed. Aborting.


安裝jekyllapi


El Capitan apple 修改了權限問題ruby

使用如下命令安裝app

$ sudo gem install -n /usr/local/bin jekyll

 等待一下子,安裝成功less

$ jekyll -v

jekyll 3.1.1


使用jekyllui

## 博客生成,默認生成再_site目錄下
$jekyll build
$jekyll build--watch  //自動檢測編譯

## 開啓jekyll本地預覽
$jekyll server
$jekyll serve --watch //自動運行編譯文件


jekyll 相關依拉庫 ,使用如下命令安裝:
sudo gem install -n /usr/local/bin  XXXX

相關錯誤:spa

ERROR:  Could not find a valid gem 'jekyll' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/latest_specs.4.8.gz)
Check if you have "http://rubygems.org/" as a source to find gems at:

$ gem sources

*** CURRENT SOURCES ***

http://rubygems.org/
If not, you should be able to add it with

$ gem sources --add  

http://rubygems.org/ added to sources
Here are docs for the gem source command.





相關閱讀:code

https://rubygems.org/pages/download
orm

http://apple.stackexchange.com/questions/193368/what-is-the-rootless-feature-in-el-capitan-really server

相關文章
相關標籤/搜索