首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Gemfile里引述没有gemspec的gem

2012-11-10 
Gemfile里引用没有gemspec的gem在Gemfile里引用一个没有gemspec的gem时,运行bundle install的时候会提示Co

Gemfile里引用没有gemspec的gem
在Gemfile里引用一个没有gemspec的gem时,运行bundle install的时候会提示


Could not find gem 'mechanize (>= 0)' in git://github.com/mvj3/mechanize.git (at master).
Source does not contain any versions of 'mechanize (>= 0)'


解决方案: 指定gem的版本即可,如 gem 'mechanize', '2.0', :git => 'git://github.com/mvj3/mechanize.git'

参考:http://stackoverflow.com/questions/4971074/attemping-to-vendorize-a-gem-into-bundler-with-rails-3-but-gem-has-no-gemspec

引用I forgot to leave the version out on my Gem! Super important :

gem "spree_easy_contact", '1.0.2', :path => "#{File.expand_path(__FILE__)}/../vendor/gems/spree_easy_contact-1.0.2"
Also it was strange..this Gem also require honeypot-captcha, so I had to include that in my Gemfile. All is well.

热点排行