Failed to build gem native extension when install RedCloth-4.2.9 install Linux
You've probably upgraded to Mountain Lion
and have not rebuilt your ruby-1.9.2
install yet with the new development packages.
rvm --force install 1.9.2
gem install bundle --no-ri --no-rdoc
bundle install
If you don't have the Mountain Lion
dev packages installed correctly, use the ThoughtBot instructions.
Unable to install gem - Failed to build gem native extension - cannot load such file -- mkmf (LoadError)
There are similar questions:
- `require': no such file to load -- mkmf (LoadError)
- Failed to build gem native extension (mkmf (LoadError)) - Ubuntu 12.04
Usually, the solution is:
sudo apt-get install ruby-dev
Or, if that doesn't work, depending on your ruby version, run something like:
sudo apt-get install ruby1.9.1-dev
Should fix your problem.
Still not working? Try the following after installing ruby-dev:
sudo apt-get install make
Ignoring GEM because its extensions are not built
I came across this exact issue today - getting warnings like this for gems that weren't even installed!
... Well, it turns out the gems were installed - for a different ruby than the one I had set active with chruby (2.2.3 vs 2.3.1).
Switching to all the different rubies and running gem pristine --all
on all of them solved the problem.
Related Topics
M Hartl's Ruby on Rails Tutorial Chapter 5 Custom Title on Home Page
Checking If a Variable Is Not Nil and Not Zero in Ruby
Method_Missing Gotchas in Ruby
Mongodb with Mongoid in Rails - Geospatial Indexing
In Ruby, What Is the Cleanest Way of Obtaining the Index of the Largest Value in an Array
Finding Nil Has_One Associations in Where Query
Ruby Mixins: Extend and Include
Rails: Custom Text for Rails Form_For Label
How to Manage Multiple Gemsets and Ruby Versions with Rvm
Rake Aborted, Error While Trying to Load the Gem 'Uglifier'
How to Use Ruby's Readlines.Grep for Utf-16 Files
Rails: Convert Utc Datetime to Another Time Zone
How to Upgrade to the Current Version of Ruby (2.2.3) on Os X V10.6.8
Read Input from Console in Ruby
When Do We Use the "||=" Operator in Rails? What Is Its Significance
Rails: How to Access Restful Helpers
In Ruby, When Should You Use Self. in Your Classes
Reraise (Same Exception) After Catching an Exception in Ruby