2011-10-18 175 views
0
ChiliProject

我试图在服务器上安装chiliproject,继-Well私下作出─文档,我打这个错误找不到宝石“rubytree(〜> 0.5.2)红宝石”,而在Debian安装

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

我做了一个宝石安装rubytree

我得到这个消息

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

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”?

感谢您的帮助,

回答

0

根据什么版本的Rails,您正在使用(这听起来像您使用的是相对较新的一个,如果它提示你输入的Gemfile),那么你需要使用Bundler来管理你的宝石。

尝试编辑您的Gemfile,添加一个新行,上面写着:

gem "rubytree", "< 0.6" 

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

bundle install 

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

+0

ChiliProject已经使用bundler并指定'rubytree〜> 0.5.2'。我们相当坚持目前... –

+0

那么,如果你没有注意到,最高版本的rubytree <0.6是0.5.3。只是说。除非rubytree的创建者突然决定发布0.5.8版或其他版本,否则你的行与我的行完全相同。 – Batkins

+0

是的,但考虑到你提出的编辑没有做任何我们还没有做过的事情。对不起,如果听起来有点粗鲁... –

0

当前,我们需要rubytree正好在版本0.5.2或0.5.3中,如我们的Gemfile中0.8.1所述。手动安装的版本将不足以满足该要求,这正是错误消息的说明。

错误消息中的文字ruby似乎有点奇怪。您能否确保您的系统上的源代码具有完全不变的Gemfile?另外,你能否删除任何用户安装的插件并重试?另外,您正在使用哪种操作系统的红宝石(类型和版本)?

+0

我neved打开gemfile来编辑它自己。对于ruby版本,ruby -v输出是这个红宝石1.8.7(2011-06-30 patchlevel 352)[x86_64-linux]对于操作系统是Debian 6.0。 AI没有安装插件。我从一开始就接受了这份文​​件,并一直关注它直到我到达那里。我以前没有在此服务器上安装ruby。 – Spredzy