Home > Is Missing > Libxml2 Is Missing Nokogiri

# Libxml2 Is Missing Nokogiri

## Contents

This worked for me too! –Elliot Winkler Jan 10 '15 at 23:51 add a comment| up vote 0 down vote on 10.9 with XCode 6.1 i had to throw in --use-system-libraries What about building in some better error checking into the formula so it can better deal with the underlying cause of this issue? had to direct the installation to use the system's pre-installed dependencies rather than compiling them, and tell it where the libxml2 dev headers were located. What I have learned is that it looks like mkmf is fragile with respect to certain compilers. Check This Out

Error: failed to builed gem native extension0'libiconv is missing' error when installing Nokogiri on Cygwin Hot Network Questions The Ooh-Aah Cryptic Maze Hacker used picture upload to get PHP code into Even if you have Xcode installed and you've been using it, running Xcode-select --install is still needed. –LunaCodeGirl Apr 8 '15 at 17:03 Works also with macOS Sierra. –fiedl yes checking for CompositeOperator.DistortCompositeOp... no checking for QueryMagickColorname() new signature...

## Libxml2 Is Missing Nokogiri

yes checking for MagickEvaluateOperator.AddModulusEvaluateOperator... Because that's where I spent a lot of time - struggling with a compiler that worked, and an iconv that should have compiled and wouldn't. MacPorts USERS If you have /opt/local/lib/libiconv.dylib then nokogiri adds that path to the list of directories that it searches for and it will find the MacPorts installation similar to how it Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 136 Star 4,195 Fork 580 sparklemotion/nokogiri Code Issues 167 Pull requests 24 Projects

Please open a new issue with information about your system if you'd like to report an issue. @nlfiedler The 1.6.3 installation problem related to -Werror=unused-command-line-argument-hard-error-in-future will be fixed in 1.6.3.1 which share|improve this answer answered Oct 15 '14 at 14:36 rexmadden 2113 add a comment| up vote 0 down vote I got this issue when I upgraded my Mac OS to Yosemite. Thanks for taking the time to figure this! Libiconv Is Missing. Please Locate Mkmf.log To Investigate How It Is Failing. JezC commented Jul 22, 2014 I have two Macs.

yes checking for sys/types.h... Libiconv Is Missing El Capitan muescha commented Jul 24, 2014 Mhh i still wondering how difficult it would be if i install the current nokogiri on a virtual server? allaire commented Jul 15, 2014 This worked for me: You need to uninstall nokogiri (if installed with brew paths or anything like that), install build tools from apple: xcode-select --install and find more info Preferably a repro without rvm.

Following it I get this output: gem install nokogiri -- --use-system-libraries --with-xml2-include=brew --prefix/opt/libxml2/include/libxml2 --with-xml2-lib=brew --prefix/opt/libxml2/lib --with-xslt-dir=brew --prefix/opt/libxslt --with-iconv-include=brew --prefix/opt/libiconv/include/ Building native extensions with: '--use-system-libraries --with-xml2-include=/Users/dwt/Library/Homebrew/opt/libxml2/include/libxml2 --with-xml2-lib=/Users/dwt/Library/Homebrew/opt/libxml2/lib --with-xslt-dir=/Users/dwt/Library/Homebrew/opt/libxslt --with-iconv-include=/Users/dwt/Library/Homebrew/opt/libiconv/include/' This could take Install Nokogiri El Capitan I got a new Macbook Air, and I installed Nokogiri without any issues. I have installed all the libraries and supplied every command line argument I have found on StackOverflow and Github: $ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install nokogiri -- --with-iconv-dir=/usr/local/opt/libiconv --with-xslt-dir=/usr/local/opt/libxslt Building native extensions with: Every time someone depends on a different version I have to figure out how to build it. ## Libiconv Is Missing El Capitan please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. ----- *** extconf.rb failed *** Then you are probably missing the right developer tools. http://stackoverflow.com/questions/33949466/libiconv-is-missing-error-when-installing-nokogiri-on-cygwin Sign in to comment Contact GitHub API Training Shop Blog About © 2017 GitHub, Inc. Libxml2 Is Missing Nokogiri These files didn't exist on the file system... Brew Install Libiconv No Available Formula When trying to run the installation for Nokogiri, libxml2 and libxslt seem to be found fine, but not libiconv. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb Building nokogiri using packaged libraries. his comment is here I did try to use them with the explicit build settings as described at https://nokogiri.org/tutorials/installing_nokogiri.html#homebrew_09 and that didn't work with the error I reported initially. This was succcessful for me: gem install nokogiri -v '1.6.3.1' -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 share|improve this answer answered Dec 2 '15 at 22:06 wildabeast 5341622 add a comment| Your Answer draft The contents of the mkmf.log file are below: "gcc-4.2 -o conftest -I/usr/local/include/ruby-2.1.0/x86_64-darwin11.0 -I/usr/local/include/ruby-2.1.0/ruby/backward -I\ /usr/local/include/ruby-2.1.0 -I. -I/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENT\ RANT -I/usr/local/include -pipe -Wno-error=unused-command-line-argument-hard-error-in-future -O3 -Wall -Wcast-qual -\ Wwrite-strings -Wconversion Package Configuration For Libiconv Is Not Found Now, however I have been seeing a new error message where a gmkdir command is missing as in this question: gem install nokogiri -v '1.5.11' failed due to make: /usr/local/bin/gmkdir: No no checking for iconv_open() in -liconv... In my case when I hit this it was that Nokogiri specifically adds /opt/local/lib to the library search path and GNU Backgammon had installed an incompatible libiconv there. this contact form After installing the command line tools via Xcode's preferences dialog, I am still unable to install nokogiri 1.6.3 on Lion. Side Note: nokogiri has been my highest barrier to using ruby applications. Install Libiconv Ubuntu If you build your own software and it requires this formula, you'll need to add to your build variables: LDFLAGS: -L/usr/local/opt/libiconv/lib CPPFLAGS: -I/usr/local/opt/libiconv/include ==> Summary  /usr/local/Cellar/libiconv/1.14: 26 files, 1.4M, built flavorjones closed this Dec 31, 2014 pushpendra-mobicules commented Jul 28, 2015 Please help me how can I fix the error I have pasted below: Building native extensions. ## Nokogiri builds and uses a packaged version of libxslt. wo any success .. Minimal polynomial of an algebraic number expressed in terms of another algebraic number Digital Hardness of Integers Disallowing \textbf, \it, \sffamily, ... First install homebrew, it'll make your life easier. Libxml2 Is Missing. Please Locate Mkmf.log To Investigate How It Is Failing. You then end up having to install libiconv as well, just to get the renamed function to be found... Building nokogiri using packaged libraries. That's what my mkmf.log is suggesting to me, anyway :) On Mon, Jul 28, 2014 at 9:10 PM, muescha [email protected] wrote: I have one virtual server (@dreamhost https://github.com/dreamhost) with an old yes checking for DistortImageMethod.BilinearReverseDistortion... navigate here Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/maximveksler/.rvm/rubies/ruby-2.1.2/bin/ruby --help --clean --use-system-libraries --enable-static --disable-static --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib --enable-cross-build --disable-cross-build extconf failed, exit code This could take a while... We recommend upgrading to the latest Safari, Google Chrome, or Firefox. All gists GitHub Sign up for a GitHub account Sign in Create a gist now Instantly share code, notes, This is free software; see the source for copying conditions. I would love to get a reply from you there though (or here, but about that topic). yes checking for VirtualPixelMethod.VerticalTileEdgeVirtualPixelMethod... amejiarosario commented Aug 15, 2014 👍 for xcode-select --install JeremyEnglert commented Aug 17, 2014 I had a similar experience as @kchasel. I found that I didn't have /usr/include/iconv.h due to some kind of problem with O/S upgrades or restores from backups. I'll try to get a PR in for the readme today allaire commented Jul 15, 2014 It would be cool if others could test that it works for them too. Seems to work for now. Ran 'xcode-select --install' and accepted the pop up window. If so, can you write up a summary of what you needed to do/change to get going? Results logged to /Users/maximveksler/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.2.1/gem_make.out gem nokogiri osx-yosemite share|improve this question asked Jul 12 '14 at 9:19 Maxim Veksler 8,2632384126 add a comment| 11 Answers 11 active oldest votes up vote 31 muescha$ which iconv /usr/bin/iconv muescha commented Jun 28, 2014 FYI: i got it installed with this: http://stackoverflow.com/questions/5528839/why-does-installing-nokogiri-on-mac-os-fail-with-libiconv-is-missing#comment30773476_6163052 If you're running Mavericks, you may need to install Xcode's command line tools: xcode-select Parking lot supervisor Why isn't the religion of R'hllor, The Lord of Light, dominant? If you give me the commands to query my setup, I'll give you the results. compiling rmenum.c rmenum.c:450:13: warning: 5 enumeration values not handled in switch: 'DivideSrcCompositeOp', 'MinusSrcCompositeOp', 'DarkenIntensityCompositeOp'... [-Wswitch] switch (op) ^ rmenum.c:565:13: warning: enumeration values 'LZMACompression', 'JBIG1Compression', and 'JBIG2Compression' not handled in switch [-Wswitch]

I ran 'xcode-select --install' then got the command line tools installed (surprised this didn't update on the OS ugrade). yes checking for CompressionType.PizCompression... now what? gem install nokogiri -- --with-iconv-lib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib --with-iconv-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include --use-system-libraries share|improve this answer answered Nov 1 '14 at 18:52 natbro 9191113 add a comment| up vote 0 down vote I was experiencing this problem

Reload to refresh your session. Don't use sudo to install gems or modify the default Ruby.