找不到 gem 'rubytree (~> 0.5.2) ruby'在 Debian 上安装 ChiliProject 时
我正在尝试在服务器上安装 chiliproject,遵循 -做得好 - 文档 我遇到了此错误
Could not find gem 'rubytree (~> 0.5.2) ruby' in any of the gem sources listed in your Gemfile.
我做了 gem install 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 (0.8.1)
那么为什么系统说找不到 gem 'rubytree' ?
感谢您的帮助,
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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您使用的 Rails 版本(如果提示您输入 Gemfile,听起来您正在使用相对较新的版本),那么您需要使用 Bundler 来管理您的宝石。
尝试编辑您的 Gemfile,添加一个新行,内容如下:
然后打开控制台,然后键入此命令
这应该可以解决您的问题,但如果您在运行命令时仍然遇到错误,请尝试输入
bundle exec
在命令之前(即rails server
变为bundle execrails server
)。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:
Then open up a console, and type this command
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
becomesbundle exec rails server
).目前,我们需要
rubytree
版本为 0.5.2 或 0.5.3,如我们Gemfile
中指定的 0.8.1 版本。您手动安装的版本无法满足该要求,这正是错误消息所指出的。看起来有点奇怪的是错误消息中的文字
ruby
。您能否确保您的系统上的源代码具有完全相同的、未更改的Gemfile
?另外,您可以删除所有用户安装的插件并重试吗?另外,您在哪个操作系统上使用哪种 ruby(类型和版本)?Currently, we require
rubytree
exactly in version 0.5.2 or 0.5.3, as specified in ourGemfile
, 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 unchangedGemfile
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?