nokogiri will not install - ERROR: Failed to build gem native extension
You should have the necessary required packages:
Ruby
sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
sudo apt-get install libreadline-ruby1.8 libruby1.8 libopenssl-ruby
nokogiri
sudo apt-get install libxslt-dev libxml2-dev zlib1g-dev
sudo gem install nokogiri
This should fix this. Or alternatively see Problems installing Nokogiri (1.5.2) on Ubuntu 12.10 Which should also be able to answer your question. Pointer for future reference. Try to research on stackoverflow or other resources that may have the answer because you may find that your problem has already been solved
Wi
Nokogiri 'Failed to build gem native extension' when I run bundle install
Previous advises didn't help me, here is the solution for OS 10.9:
brew install libxml2
bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2"
bundle install
Installing nokogiri - Failed to build gem native extension
Is there a specific reason you need 1.4.4 instead of the latest 1.5.6? Otherwise I suggest upgrading.
The Nokogiri changelog shows they fixed this in 1.5.4:
Build support on hardened Debian systems that use
-Werror=format-security
. #680.
Related Topics
Ruby: Class Instance Variables VS Instance Variables
Setspeed in Selenium Webdriver Using Ruby
How to Avoid Trailing Empty Items Being Removed When Splitting Strings
Google Plus API Shutdown Today, Which Alternative Can Be Used to Authentication
How to Format a Date in Ruby to Include "Rd" as in "3Rd"
Xpath Axis, Get All Following Nodes Until
Can't Install Pg Gem on Windows
Ruby Gem For Finding Timezone of Location
Long Running Delayed_Job Jobs Stay Locked After a Restart on Heroku
Set Utf-8 as Default String Encoding in Heroku
What Does "≪≪-" Mean in Ruby
How to Run All Tests With Minitest
Convert Time from One Time Zone to Another in Rails
Automatic Counter in Ruby For Each
Rails - Best-Practice: How to Create Dependent Has_One Relations