Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
找不到gem';rubytree(~>;0.5.2)ruby';在Debian上安装项目时_Ruby_Gem_Bundle_Chiliproject - Fatal编程技术网

找不到gem';rubytree(~>;0.5.2)ruby';在Debian上安装项目时

找不到gem';rubytree(~>;0.5.2)ruby';在Debian上安装项目时,ruby,gem,bundle,chiliproject,Ruby,Gem,Bundle,Chiliproject,我正试图在服务器上安装chiliproject,遵循-做得好-文档,我遇到了这个错误 Could not find gem 'rubytree (~> 0.5.2) ruby' in any of the gem sources listed in your Gemfile. 我做了一个宝石安装rubytree 我收到这个消息 ======================================================================== Thank

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

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更改,我如何请求RubyTreeGem的0.5.2版本

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

那么,为什么系统会说找不到宝石“红宝石树”


感谢您的帮助,

根据您使用的rails版本而定(如果提示您输入Gemfile,听起来您使用的是相对较新的版本),那么您需要使用来管理gems

尝试编辑您的文件,添加一行内容如下:

gem "rubytree", "< 0.6"

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

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


看起来有点奇怪的是错误消息中的文本
ruby
。请确保您的系统上的源文件中有准确的未更改的
Gemfile
?另外,请删除任何用户安装的插件,然后再试一次好吗?另外,您在哪个操作系统上使用哪个ruby(类型和版本)?

ChiliProject已经使用bundler并指定了
rubytree~>0.5.2
。我们现在非常坚持……如果你没有注意到,rubytree<0.6的最高版本是0.5.3。只是说说而已。除非rubytree的创建者突然决定发布0.5.8版或其他版本,否则你的产品线与我的产品线完全相同。是的,但是考虑到你提出的编辑没有做任何我们还没有做的事情。抱歉,如果这听起来有点粗鲁…我从来没有打开过GEM文件来编辑它。对于ruby版本,ruby-v输出是ruby 1.8.7(2011-06-30 patchlevel 352)[x86_64-linux],操作系统是Debian 6.0。AI没有安装插件。我从一开始就拿着医生,一直跟着它走到那里。我以前没有在这台服务器上安装ruby。
bundle install