Ubuntu安装jekyll

jekyll official website

Install Ruby

We can directly use gem to install Ruby,but Ruby on ubuntu14.14 are at 1.9 version, higher than 2.2 version is expected.

ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]

Install rubygems

Download it from official site , or use git.

cd ~/Downloads/ && git clone https://github.com/rubygems/rubygems.git

after downloading, switch to the director and run:

ruby setup.rb

Install jekyll

sudo gem install jekyll

May there be some error :

ERROR: Loading command: update (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

Get into ruby-xx/ext/zlib/ , run the command below:

ruby extconf.rb
make
sudo make install

And we may meet other problem, Install sql related package:

sudo apt-get install libmysqlclient-dev

if still be error like:

ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

run the command below:

gem source -r https://rubygems.org/
gem source -a http://rubygems.org/

Then install jekyll

sudo gem install jekyll

after that, check the jekyll version

jekyll -v

Jekyll 3.1.3

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容