Skip to content

Instantly share code, notes, and snippets.

@kaishin-r
Created December 18, 2012 13:12
Show Gist options
  • Save kaishin-r/4327874 to your computer and use it in GitHub Desktop.
Save kaishin-r/4327874 to your computer and use it in GitHub Desktop.
Running Jekyll on CentOS 5.6
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
===========
yum install -y gcc zlib zlib-devel
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p330.tar.gz
tar xvf ruby-1.8.7-p330.tar.gz
cd ruby-1.8.7-p330
./configure --enable-pthread
make
make install
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