Error Installing Nokogiri Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack
Gem Install Nokogiri Ubuntu
Overflow the company Business Learn more about hiring developers or posting ads with us error installing nokogiri error failed to build gem native extension Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a
Error Installing Nokogiri Libxml2 Is Missing
community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up unable to install nokogiri in ubuntu 12.04 up vote 14 down vote favorite 3 I nokogiri libxml2 is missing am trying to setup rails env on my new ubuntu machine. But I am facing trouble while install nokogiri gem.. I have installed libxslt and libxml2 libs thourgh rvm pkg command as well as using apt-get. I thought it is showing me libxslt is missing error. Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/hacker5/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb --with-xslt-include=/usr/include/libxslt checking for libxml/parser.h... mac install libxml2 yes checking for libxslt/xslt.h... yes checking for libexslt/exslt.h... yes checking for iconv_open() in iconv.h... no checking for iconv_open() in -liconv... yes checking for xmlParseDoc() in -lxml2... yes checking for xsltParseStylesheetDoc() in -lxslt... no ----- libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. ----- EDIT I am using rvm setup and ruby 1.9.3 ruby-on-rails ubuntu nokogiri share|improve this question asked Jul 26 '12 at 6:17 hardy12 4271414 possible duplicate of error installing nokogiri 1.5.0 with rails 3.1.0 and ubuntu –Rubyrider Dec 24 '14 at 7:56 add a comment| 8 Answers 8 active oldest votes up vote 21 down vote Try this: # nokogiri requirements sudo apt-get install libxslt-dev libxml2-dev gem install nokogiri share|improve this answer edited Dec 24 '14 at 7:51 Hertzel Guinness 3,97012338 answered Jul 26 '12 at 6:19 Benjamin Tan 7,86731839 10 sudo apt-get install libxslt-dev libxml2-dev is sufficient for Ruby 1.9.3. –scarver2 Nov 22 '12 at 16:46 4 this did not work for me –Blind Fish Jun 10 '13 at 18:08 1 The OP clearly stated his ruby version. Installing ruby packages when he is already using rvm is of no real help. –Varun Vohra Mar 24 '14 at 13:18 Thanks. For me helped also: sudo apt-get install zlib1g-dev
here for a quick overview of the site Help
Brew Install Libxml2
Center Detailed answers to any questions you might have gem install nokogiri Meta Discuss the workings and policies of this site About Us Learn more about Stack
Nokogiri Github
Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask http://stackoverflow.com/questions/11663499/unable-to-install-nokogiri-in-ubuntu-12-04 Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error installing Nokogiri on bundle install but already installed up vote 19 down vote favorite http://stackoverflow.com/questions/29020478/error-installing-nokogiri-on-bundle-install-but-already-installed 7 I'm having issues with bundling my Gemfile. I have Nokogiri installed already yet when I run bundle install it fails to load Nokogiri. Installing Nokogiri: gem install nokogiri Building native extensions. This could take a while... Successfully installed nokogiri-1.6.6.2 Parsing documentation for nokogiri-1.6.6.2 Done installing documentation for nokogiri after 2 seconds 1 gem installed Bundle install: bundle install sic@ANTHONYs-iMac Fetching gem metadata from https://rubygems.org/......... Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies... Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.2 Using minitest 5.5.1 Using thread_safe 0.3.4 Using tzinfo 1.2.2 Using activesupport 4.2.0 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile 0.6.2 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/sic/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150312-7195-1d8tq46.rb extconf.rb checking if the C compiler accepts ... yes checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no Building nokogiri using packaged libra
Sign in Pricing Blog Support Search GitHub This repository Watch 43 Star 13 Fork 59 chef-cookbooks/xml Code Issues 0 Pull requests 0 Projects 0 Pulse Graphs New https://github.com/chef-cookbooks/xml/issues/19 issue Can't install gem nokogiri on Ubuntu 14.04 because of missing headers #19 Closed nicwaller opened this Issue Jan 9, 2015 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants nicwaller commented Jan 9, 2015 This cookbook didn't work for me with Ubuntu 14.04. The gem 'nokogiri' fails to install, error installing because the library 'libxml2' fails to compile, because the headers for 'liblzma-dev' and 'zlib1g-dev' are unavailable. Steps to reproduce on vanilla Ubuntu 14.04 (on AWS) sudo /opt/chef/embedded/bin/gem install nokogiri -q --no-rdoc --no-ri -v "1.6.5" Output Error executing action `install` on resource 'chef_gem[nokogiri]' ---- Begin output of /opt/chef/embedded/bin/gem install nokogiri -q --no-rdoc --no-ri -v "1.6.5" ---- STDOUT: Building native extensions. This could take a error installing nokogiri while... STDERR: ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. Running 'compile' for libxml2 2.9.2... ERROR, review '/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.5/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/compile.log' to see what happened. Workarounds sudo apt-get install liblzma-dev zlib1g-dev sudo /opt/chef/embedded/bin/gem install nokogiri -q --no-rdoc --no-ri -v "1.6.5" -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 Suggestion Add packages liblzma-dev, zlib1g-dev to default['xml']['packages'] for debian. purgatorio referenced this issue Apr 13, 2015 Merged Nokogiri syslib fix #24 gnchapman commented Aug 13, 2015 I have been searching since last night for a solution to this problem. All Stack Overflow posts were useless. Your workaround saved me! Thank you! FYI - running clean install of Ubuntu 14.04 on VMWare, with a new installation of Ruby (v1.9.3p484) nicwaller commented Sep 14, 2015 Fixed in bcaf663 nicwaller closed this Sep 14, 2015 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in