Question

I have already installed rvm and few versions of rubies. Here is the list

$ rvm list
rvm rubies

   ruby-1.9.1-p431-dev [ i686 ]
=> ruby-1.9.3-p484 [ i686 ]
 * ruby-2.0.0-p247 [ i686 ]
   ruby-2.0.0-p353 [ i686 ]


# => - current
# =* - current && default
#  * - default

I tried sudo gem install jekyll in all versions but getting the same error again and again

sudo gem instal jekyll
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

How to proceed with the Jekyll installation.

When reading about Troubleshooting Installation Problem they have mentioned to Install ruby1.9.1-dev package through

sudo apt-get install ruby1.9.1-dev

Will it solve my issue without disturbing the rvm? Please guide me.

Was it helpful?

Solution

It seems either the build of isn't completed, or some of build-in modules for the ruby are absent, for example mkmf. So you have to add-in the module into the installation if any, in order to be able to build native gems with the ruby.

When reading about Troubleshooting Installation Problem they have mentioned to Install ruby1.9.1-dev package through

sudo apt-get install ruby1.9.1-dev

Of course try to install, and then do in of the :

require 'mkmf'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top