jmettraux / ruote

a ruby workflow engine (dead)
MIT License
496 stars 74 forks source link

Dependency failure with 'gem install' under 1.9.x #75

Closed randomcamel closed 11 years ago

randomcamel commented 11 years ago

ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: ruote requires ruby_parser (~> 2.3); rufus-treechecker requires ruby_parser (>= 2.0.5); sourcify requires sexp_processor (>= 3.0.5), ruby_parser (>= 2.0.5); ruby2ruby requires sexp_processor (~> 4.0), ruby_parser (~> 3.1)

Tested on:

OS X 10.7.5: 1.9.2-p290, 1.9.3-p194, 1.9.3p374 (clean install) Ubuntu 12: 1.9.2-p290 (clean install), 1.9.3-p194

randomcamel commented 11 years ago

This was just doing 'gem install ruote'--no Gemfile, no Bundler. As mentioned, I tried it with a couple fresh 1.9.x installs, so in those cases Rubygems was the only source and the only other gems installed were the defaults, like minitest/rake/rdoc.

jmettraux commented 11 years ago

OK, I could reproduce it on a Debian GNU/Linux system:

$ rvm use 1.9.2-p290
Using /home/jmettraux/.rvm/gems/ruby-1.9.2-p290
$ gem install ruote
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies:
     ruote requires ruby_parser (~> 2.3);
     rufus-treechecker requires ruby_parser (>= 2.0.5);
     sourcify requires sexp_processor (>= 3.0.5), ruby_parser (>= 2.0.5);
     ruby2ruby requires sexp_processor (~> 4.0), ruby_parser (~> 3.1)

My version of rubygems is 1.8.24 which seems the latest stable. The 2.0 version seems to be under preparation:

http://rubygems.org/gems/rubygems-update

The workaround should be to use Bundler. Here is a minimal Gemfile:

source :rubygems

gem 'yajl-ruby', :require => 'yajl'
gem 'ruote'

I hope Rubygems will improve.

Thanks for reporting the issue, I'll try to write some warning in the ruote install page.

John