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

发布于 2024-12-10 17:58:03 字数 1317 浏览 0 评论 0原文

我正在尝试在服务器上安装 chiliproject,遵循 -做得好 - 文档 我遇到了此错误

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 更改引起的,我如何请求 ruby​​tree 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绝影如岚 2024-12-17 17:58:03

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

尝试编辑您的 Gemfile,添加一个新行,内容如下:

gem "rubytree", "< 0.6"

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

bundle install

这应该可以解决您的问题,但如果您在运行命令时仍然遇到错误,请尝试输入 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:

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).

屋檐 2024-12-17 17:58:03

目前,我们需要 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 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文