gem install RedCloth
Building native extension. This could take a while...
ERROR: Error installing RedCloth:
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 extconf.rb:1:in `<main>'
Gem files will remain installed in /var/lib/gems/1.8.1/gems/RedCloth-4.2.9 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/RedCloth-4.2.9/ext/redcoth_scan/gem_make.out
My version of Ruby installed is 1.9.3p194
Why do I get this error when trying to install RedCloth
?
To solve this issue, I had to update to the latest version of Ruby, or at least
1.9.3
I run the following sets of commands, from root and it works for me:
This will totally install the latest version of Ruby, then you can run:
RedCloth will now be installed. RVM will manage your Ruby installations. Ruby will now work too.