voxxit/opensrs

Requires libxml-ruby 1.0.0 specifically

Closed this issue · 6 comments

Trying to install the opensrs gem on a Win32 system is a nightmare due to the libxml-ruby requirement. One must install libxml-ruby 1.0.0 specifically, then install opensrs, uninstall libxml-ruby, then install libxml-ruby 1.1.4, copy a few files to Ruby's /bin directory from the libxml gem's directory, and only then can opensrs be used.

It's such a wrinkle that I simply have users install opensrs 0.2.1, which doesn't have any difficulties installing on Win32 installs.

Tested with the latest version of rubygems on Ruby 1.9.2 p180 32-bit RubyInstaller on Windows 7 64-bit.

Fixed this issue, and pushed version 0.3.1 (which will install 1.1.4, or any version of 1.x.x)

Yep, that worked. Now it's just a pain to install a version < 2 on Ruby 1.9.2, since there are no packaged libxml-ruby gems for 1.9, only 1.8. Unless you plan on upgrade to libxml-ruby >= 2 (or an in-house) it's still a pain to get the gem up and running on a 1.9 Ruby install on Windows. (that can be seen, however, as not your problem :) )

I don't really know why libxml-ruby <= 1 is required. I will investigate when I get home, try upgrading and use the test suites to determine whether the upgrade can be put into a gem.

I didn't get any problems upgrading to libxml 2.0.x and running a couple of live OpenSRS commands. I'd advise you run your own tests locally, though, just to doublecheck.

It is still, however, a bit of a pain to get everything up and running on Windows, but that's not your problem now is it. :)

FYI: 2.x is now there for you!

Updated the day it came out. Solved the gem dependency issues we were having inside the herd. Thanks very kindly. :)