jekyll安装
今天装jekyll,总是失败。各种报错
ERROR: While executing gem ... (TypeError) instance of Date needs to have method `marshal_load'
WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legacy indexes degrading performance. Updating metadata for 1 gems from http://rubygems.org/ . complete Bulk updating Gem source index for: http://ruby.taobao.org/ ERROR: While executing gem ... (NoMethodError) undefined method `gems' for #<Array:0x7f4a0f282750>
最后装了最新的ruby搞定
步骤:
首先安装rvm
- yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
- curl -L get.rvm.io | bash -s stable
- source /etc/profile.d/rvm.sh
安装最新的ruby
- rvm install ruby-head时出错
Warning! Requested ruby installation which requires another ruby available - installing one first. To proceed rvm requires a ruby-1.9|ruby-2 compatible ruby is installed. We attempted to install ruby automatically but it failed. Please install it manually (or a compatible alternative) to proceed.
- 于是 按要求,rvm install ruby-1.9
- rvm install ruby-2.1.1
- gem install jekyll
- 结束,OK