RXSD icon indicating copy to clipboard operation
RXSD copied to clipboard

Trouble installing under Ruby 2.2, 1.8.7

Open dmolesUC opened this issue 10 years ago • 2 comments

When I try to install under 2.2 or 2.2.1, I get:

ERROR:  Error installing rxsd:
    ERROR: Failed to build gem native extension.
    /Users/dmoles/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150417-38137-cometj.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-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/dmoles/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME)
extconf.rb:17:in `<main>': uninitialized constant Config (NameError)

extconf failed, exit code 1

Gem files will remain installed in /Users/dmoles/.rvm/gems/ruby-2.2.1/gems/libxml-ruby-2.4.0 for inspection.
Results logged to /Users/dmoles/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0/libxml-ruby-2.4.0/gem_make.out

Checking the gemspec (s.required_ruby_version = '>= 1.8.1'), I tried downgrading to 1.8 and got past libxml, but failed at:

ERROR:  Error installing rxsd:
    i18n requires Ruby version >= 1.9.3.

I finally was able to install under 1.9.3-p551 but then ran into an issue similar to #6, which I'll file separately.

dmolesUC avatar Apr 17 '15 19:04 dmolesUC

+1

fernandes avatar Jun 24 '15 17:06 fernandes

Hey thanks for the issue. TBH I haven't touched RXSD in a while, and probably won't be able to dedicate much time too it. Alot of people have shown interest though, so you may have better luck with one of the forks.

That being said, I briefly looked into the error and it seems to ultimately be due to the libxml-ruby dependency which is set to an older version in rxsd.gemspec

https://github.com/movitto/RXSD/blob/master/rxsd.gemspec#L13

libxml-ruby was recently patched to resolve this issue:

https://github.com/xml4r/libxml-ruby/commit/0bdfffcdd53a40bd866b10b4692e23da6a020d88

I'm guessing relaxing this dependency may resolve the issue (hopefully not introducing others!)

movitto avatar Jun 24 '15 18:06 movitto