Jekyll介绍及安装方法
在 MAC 上安装 Jekyll时,输入命令
$ gem install jekyll
会提示错误
While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
原因:
Apparently with OSX el Capitan, there is a new security function that prevents you from modifying system files called Rootless.
解决办法:使用 RVM 安装 ruby
HOW TO INSTALL RUBY ON MAC OS X WITH RVM
rvm可以让你拥有多个版本的Ruby,并且可以在多个版本之间自由切换。
安装完成后,执行命令
$ gem install jekyll
jekyll安装完成!