Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble installing under Ruby 2.2, 1.8.7 #18

Open
dmolesUC opened this issue Apr 17, 2015 · 2 comments
Open

Trouble installing under Ruby 2.2, 1.8.7 #18

dmolesUC opened this issue Apr 17, 2015 · 2 comments

Comments

@dmolesUC
Copy link

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.

@fernandes
Copy link

+1

@movitto
Copy link
Owner

movitto commented Jun 24, 2015

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:

xml4r/libxml-ruby@0bdfffc

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants