Spredzy
Spredzy

Reputation: 5164

Could not find gem 'rubytree (~> 0.5.2) ruby' while installing ChiliProject on Debian

I am trying to install chiliproject on a server, following the -well done- documentation I am hitting this error

Could not find gem 'rubytree (~> 0.5.2) ruby' in any of the gem sources listed in your Gemfile.

I did a gem install rubytree

I get this message

========================================================================

 Thank you for installing rubytree.

              WARNING: SIGNIFICANT API CHANGE in 0.8.0 !
              ------------------------------------------

 Please note that as of 0.8.0 the CamelCase method names are DEPRECATED.

 The new method names follow the ruby_convention (separated by '_').

 The old CamelCase methods still work (a warning will be displayed),
 but may go away in the future.

 Details of the API changes are documented in the API-CHANGES file.

========================================================================
Successfully installed rubytree-0.8.1
1 gem installed
Installing ri documentation for rubytree-0.8.1...
file 'COPYING,API-CHANGES' not found
Installing RDoc documentation for rubytree-0.8.1...
file 'COPYING,API-CHANGES' not found

That is saying the installation was succesful. So why do I get the error ? If the error is from the API change how can I request version 0.5.2 of the rubytree gem ?

When I do a gem list --local | grep 'rubytree' I have this output rubytree (0.8.1)

So why is the system saying could not find gem 'rubytree' ?

thank you for any help,

Upvotes: 0

Views: 619

Answers (2)

Holger Just
Holger Just

Reputation: 55748

Currently, we require rubytree exactly in version 0.5.2 or 0.5.3, as specified in our Gemfile, the 0.8.1. version you installed by hand will not suffice that requirement, which is exactly what the error message states.

What seems a bit odd is the literal ruby in the error message. Could you please make sure that you have the exact unchanged Gemfile from the source on your system? Also, could you please remove any user-installed plugins and try again? Also, which ruby (type and version) on which operating system are you using?

Upvotes: 0

Batkins
Batkins

Reputation: 5706

Depending on what version of rails you are using (and it sounds like you are using a relatively newer one, if it's prompting you for your Gemfile), then you need to use Bundler to manage your gems.

Try editing your Gemfile, adding a new line that reads:

gem "rubytree", "< 0.6"

Then open up a console, and type this command

bundle install

This should fix your problems, but if you still get errors when running a command, then try typing bundle exec prior to the command (i.e. rails server becomes bundle exec rails server).

Upvotes: 0

Related Questions