在Debian上安装ChiliProject时找不到gem'rubytree(〜> 0.5.2)ruby'

时间:2011-10-18 17:50:32

标签: ruby gem bundle chiliproject

我正在尝试在服务器上安装chiliproject,遵循-well done-文档我遇到了这个错误

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

我做了一个gem install ruby​​tree

我收到此消息

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

 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

这就是说安装是成功的。那么为什么我会收到错误? 如果错误来自API更改,我如何请求rubytree gem的0.5.2版本?

当我做gem list --local | grep 'rubytree'时 我有这个输出rubytree (0.8.1)

那么为什么系统说不能找到宝石'rubytree'?

感谢您的帮助,

2 个答案:

答案 0 :(得分:0)

根据您使用的导轨版本(听起来您使用的是相对较新的导轨,如果它提示您输入Gemfile),则需要使用Bundler来管理您的宝石。 / p>

尝试编辑Gemfile,添加一个新行:

gem "rubytree", "< 0.6"

然后打开控制台,输入此命令

bundle install

这应该可以解决您的问题,但如果在运行命令时仍然出现错误,请在命令之前尝试键入bundle exec(即rails server变为bundle exec rails server)。

答案 1 :(得分:0)

目前,我们要求rubytree完全符合版本0.5.2或0.5.3,正如我们Gemfile中指定的0.8.1。您手动安装的版本不足以满足该要求,这正是错误消息所述的内容。

看起来有点奇怪的是错误消息中的文字ruby。您能否确保您的系统来源与Gemfile完全一致?另外,你可以删除任何用户安装的插件,然后再试一次吗?另外,您使用哪种操作系统的ruby(类型和版本)?