Not able to run/install Gems using Gemfile

心不动则不痛 提交于 2019-12-11 05:28:52

问题


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!!!


回答1:


As Pete is saying there probably is a problem with your gemfile Try 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 page https://github.com/jkraemer/acts_as_ferret




回答2:


Looks like your gem identifier is misstyped if it cannot be found even if you try different sources. Did you try to remove the (>=0) ? I think that just says, 'get me any version' but you already specify the version as 0.4.4. Also I'm not too sure about the 'ruby' addition. Here the gem is listed as acts_as_ferret-0.4.4.gem



来源:https://stackoverflow.com/questions/7950903/not-able-to-run-install-gems-using-gemfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!