I've been having issues installing the libxml
gem for ruby on windows. My team currently uses the libxml gem on 32 bit Ruby 2.0 but I've been bogged down trying to get this gem installed for a day or two. After many initial hiccups I've gotten pretty far, especially with the help Wikk's answer from this stack overflow thread.
Here is the current error log.
So to recap my steps, before coming across Wikk's answer, my computer couldn't find libxml2
. I saw Wikk's answer and:
- Copied the lib contents from the MinGW iconv package and
extracted everything in
mingw64/lib
andmingw64/include
to<ruby_install_dir>/lib
and<ruby_install_dir>/include
respectively - I then did the same but with the
libxml2-2.7.8.win32
libxml2-2.9.3-win32-x86.7z
7-zip file'sinclude
andlib
contents I found atftp://ftp.zlatkovic.com/libxml
ftp://ftp.zlatkovic.com/libxml/64bit/
(couldn't hyperlink as I can't exceed 2 links with my reputation!) - I then executed the following in cmd:
gem install libxml-ruby -- with-xml2-include=C:\Ruby200\include\libxml2 --with-iconv-include=C:\Ruby200\include
. Appending those arguments made it find libxml, but still no luck building the dang gem.
Upon running that, I got that giant error log printed out in my console. The only difference I could see in how Wikk and I did this was that he installed a 64 bit version of libxml, but I think I found the 32 bit version of everything at the ftp link above. Maybe the iconv package linked above was intended for 64 bit?? As of now, I'm completely stumped as I'm not sure what the error log is trying to tell me.
Any thoughts would be super-ultra-majorly appreciated.
EDIT: So I found my issue-- turns out I wasn't using the most up-to-date libxml2 library. I crossed out the incorrect step above to reflect the correct answer.
EDIT 2: Gem installed but the library could not be used. Issue remains unresolved.