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

相关文章
相关标签/搜索