本文介绍了无法使用Gemfile运行/安装Gems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



找不到gem'acts_as_ferret-0.4.4.gem(> = 0)ruby'在Gemfile中列出的任何宝石源中。



显然,Gemfile中的第一个gem是acts_as_ferret-0.4.4,源是

源'http://rubygems.org'



我也尝试过其他来源,但仍然无法正常工作!!!

解决方案

正如Pete所说,你的gemfile可能存在问题
尝试打开它并查看你的acts_as_ferret是否看起来像这样。 / p>

  gemacts_as_ferret,〜> 0.5.3

如果不尝试并将其更改为上述内容



您可以在gem上找到更多信息github页面


When i give bundle install or bundle exec i am getting this error

Could not find gem 'acts_as_ferret-0.4.4.gem (>= 0) ruby' in any of the gem sources listed in your Gemfile.

Apparently the first gem in the Gemfile is acts_as_ferret-0.4.4 and source is

source 'http://rubygems.org'

I tried other sources also but still not working!!!

解决方案

As Pete is saying there probably is a problem with your gemfileTry to open it and see if your acts_as_ferret looks something like this.

gem "acts_as_ferret", "~> 0.5.3"

if not try and change it to the above

There is more info to be found on the gem on the github pagehttps://github.com/jkraemer/acts_as_ferret

这篇关于无法使用Gemfile运行/安装Gems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 16:25