
一、GitPages创建
本地项目上传(远程仓库已有文件的情况)
$ git init
$ git add .
$ git remote add origin https://github.com/kikoxxxi/kikoxxxi.github.io.git
$ git pull origin master --allow-unrelated-histories
$ git push -u origin master
二、Gem下载Jekyll
替换源
$ gem source l
*** CURRENT SOURCES ***
https://rubygems.org/
$ gem source -r https://rubygems.org/
https://rubygems.org/ removed from sources
$ gem source -a https://gems.ruby-china.com
https://gems.ruby-china.com added to sources
下载Jekyll
$ sudo gem install jekyll
$ sudo gem install jekyll-paginate
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.11.1/mkmf.log
$ vi /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.11.1/mkmf.log
conftest.c:3:10: fatal error: 'ffi.h' file not found
$ sudo gem install ffi -v '1.9.21'
Star here>>>
近期评论