Skip to content

Instantly share code, notes, and snippets.

@sillygwailo
Created January 18, 2012 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sillygwailo/1636108 to your computer and use it in GitHub Desktop.
Save sillygwailo/1636108 to your computer and use it in GitHub Desktop.
Yak Shaving for Running Jekyll on CentOS 5.7
yum install rdoc ri zlib zlib-devel
yum install ruby-devel
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar -zxvf rubygems-1.3.5.tgz
cd rubygems-1.3.5
ruby setup.rb
gem install jekyll
Results in:
===========
ERROR: Error installing jekyll:
liquid requires RubyGems version >= 1.3.7
Suggestion:
===========
gem update --system
Results in:
===========
Updating RubyGems
Updating rubygems-update
ERROR: Error installing rubygems-update:
rubygems-update requires Ruby version >= 1.8.7
ERROR: While executing gem ... (NoMethodError)
undefined method `version' for nil:NilClass
Suggestion: install Ruby 1.8.7 http://heatware.net/linux-unix/how-to-install-ruby-1-8-7-centos-5-5/
===========
Results in:
===========
Ruby installed in /usr/bin/ruby and /usr/local/bin/ruby
Fix:
====
cd /usr/bin
mv ruby ruby-1.8.5
ln /usr/local/bin/ruby .
gem update --system
gem install jekyll
Installed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment