[Jekyll] error installing Jekyll

Background : Intall Jekyll.
Jekyll is a free software written in Ruby, it can tranform plein text, I mean sometimes the text can be a feed, into static websites and blogs.
I want to, of course trying with the fresh things, tranform my wordpress blog to a github one, sounds great.

Error :
You know the development does not have the favorable wind all the way, first time I tried it, I got an error. And this error appears not only in Mac, but also in Ubuntu.

The command that I typed:

sudo gem install jekyll

And I got this :

Fetching: liquid-2.5.5.gem (100%)
Fetching: fast-stemmer-1.0.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:1:in `<main>'

Gem files will remain installed in /var/lib/gems/1.9.1/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/fast-stemmer-1.0.2/ext/gem_make.out

Solution :
Before installing Jekyll, install a later version of ruby if you don’t have, I got ruby in my PC, it perhaps already out-of-date, so just re-install it to make sure.
Type this :

sudo apt-get install ruby1.9.1-dev 

And then install Jekyll :

sudo gem install jekyll

Hope this could help !

Found the same answer in askubuntu.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s