public
Created

Yak Shaving for Running Jekyll on CentOS 5.7

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
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!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.