Can't install thrift gem on OS X El Capitan
I have a solution for you! Hopefully.
Had this same problem the other day.
The problem is in the clang compiler that El Capitan comes bundled with. I'm sure it screws up other issues but this is one point that I had a lot of issues with.
Try running the following command and let me know how it goes!
gem install thrift -- --with-cppflags=\"-D_FORTIFY_SOURCE=0 -Wno-shift-negative-value\"
ERROR: Failed to build gem native extension on Mavericks
Also make sure that you've upgraded Xcode to re-install command line tools on Mavericks.
In terminal type:
xcode-select --install
Then follow the prompts.
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
Related Topics
Rails Erb Form Helper Options_For_Select :Selected
How to Write Columns Header to a CSV File with Ruby
Get Absolute (Base) Url in Sinatra
Options for Distribution of an Offline Ruby on Rails Application
Write CSV in Ruby 1.9 and CSV::Writer
Rails 3:How to Generate Models for Existing Database Tables
How to Cache a Calculated Column in Rails
Active Admin - Refresh Second Drop Down Based on First Drop Down, Ruby on Rails
How to Randomly Iterate Through a Large Range
Run Ruby Script in Elevated Mode
In Ruby, How to Check If Method "Foo=()" Is Defined
Apply Method to Each Elements in Array/Enumerable
Install Bundler Gem Using Ansible
How to Catch Errno::Econnreset Class in "Case When"
How to Run Rails Console in the Test Environment and Load Test_Helper.Rb
Convert an Array of Integers into an Array of Strings in Ruby