我正在尝试在服务器上安装chiliproject,遵循-well完成的文档,我遇到了这个错误
Could not find gem 'rubytree (~> 0.5.2) ruby' in any of the gem sources listed in your Gemfile.我做了一个gem安装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)
那么为什么系统说找不到宝石“红宝石树”呢?
谢谢你的帮助
发布于 2011-10-19 02:58:56
根据您使用的rails的版本(听起来您使用的是相对较新的版本,如果它提示您使用Gemfile),那么您需要使用Bundler来管理gem。
尝试编辑您的Gemfile,添加一行如下所示:
gem "rubytree", "< 0.6"然后打开一个控制台,并键入以下命令
bundle install这应该可以解决您的问题,但是如果您在运行命令时仍然出现错误,请尝试在命令之前键入bundle exec (即rails server变为bundle exec rails server)。
发布于 2011-10-19 02:59:10
目前,我们需要0.5.2或0.5.3版本的rubytree,正如我们的Gemfile 0.8.1中指定的那样。手动安装的版本不能满足该要求,而这正是错误消息所指出的。
看起来有点奇怪的是错误消息中的文字ruby。您可以确保您的系统上有来自源代码的完全未更改的Gemfile吗?另外,您可以删除任何用户安装的插件,然后重试吗?还有,你在哪个操作系统上使用哪个ruby (类型和版本)?
https://stackoverflow.com/questions/7811527
复制相似问题