Issues installing libxml gem for ruby on windows
I was unsuccessful with installing libxml version 2.9.0 but 2.7.0 worked just fine. I should specify I'm running windows 7 and Ruby 2.0 32 bit. Here is what I had to do:
-I followed Wik's response here, grabbing all the missing libraries from them mingw64. Admittedly, I'm not sure if I needed all of them, but I sort of took a shotgun approach here.
Added the following to my system path:
Ruby200\lib\ruby\gems\2.0.0\gems\libxml-ruby-2.7.0-x86-mingw32\lib\libs
Executed the following in command line:
gem install libxml-ruby -v2.7.0 -- with-xml2-include:=C/Ruby200/include/libxml2 --with-iconv-include:=C:/Ruby200/include
After that, I the gem, at long last, installed and was actually usable.
Issue installing libxml-ruby for Windows Ruby version 2.3.3. Missing xmlParseDoc() in -lxml2
I finally found a solution. What worked for me is I first followed the instructions in this solution. After I had to go find some of the missing pieces from libiconv; I got those from here. I extracted its lib and include contents, into like the above solution (lib into Ruby lib, include into Ruby include). After I had to change #include <iconv.h>
in encoding.h. This needed to be changed to #include <path-to-/iconv.h>
, which was extracted into Ruby's include directory earlier. I was able to run gem install libxml-ruby -- with-xml2-include=C:/Ruby23/include/libxml2 --with-iconv-include=C:/Ruby23/include
.
can't install libxml-ruby for rails 2.3.14
Try install/reinstalled libxslt with a default ./configure run
Related Topics
Ruby: Intersection Between Two Ranges
Ruby Gem Dependencies on Offline Server
Ruby Gets/Puts Only for Strings
How to Have Rspec Test for My Default Scope
In Ruby, Is There No Way to Dynamically Define a Local Variable in the Current Context
How to Access Nested Elements of a Hash with a Single String Key
Ruby Modulo 3 with Negative Numbers Is Unintuitive
Assign/Replace Params Hash in Rails
Net::Ssh Sudo Command Hangs After Entering Password
Regex, How to Match Multiple Lines
How Is Each_With_Object Supposed to Work
How to Create a Hash in Ruby That Compares Strings, Ignoring Case
To_Specs': Could Not Find Chef (>= 0) Amongst [] (Gem::Loaderror)
Insecure World Writable Dir /Users/Username in Path, Mode 040777 When Running Ruby Commands