简体   繁体   English

Bundler甚至认为它出现在gem列表中也找不到win32-service gem

[英]Bundler can't find win32-service gem even thought it appears in gem list

I'm trying to use bundler in a 2.3.4 Rails app and am having problems with the win32-service gem. 我正在尝试在2.3.4 Rails应用程序中使用捆绑程序,并且在win32-service gem上遇到问题。 The gem was installed by issuing gem install win32-service --platform mswin32 . 通过发出gem install win32-service --platform mswin32 I installed it outside of bundler as bundler always tries to compile from source which fails miserably. 我将其安装在bundler之外,因为bundler总是尝试从源代码进行编译,但失败了。

Output of gem list gem list输出

win32-service (0.7.1 x86-mswin32-60)

Output of bundle install bundle install输出

Your Gemfile doesn't have any sources. You can add one with a line like 'source :gemcutter'
Could not find gem 'win32-service (>= 0, runtime)' in any of the gem sources.  

I tried using source :gemcutter but as noted above bundler tries to use the source package that does not build. 我尝试使用source:gemcutter,但是如上所述,bundler尝试使用未构建的源包。

I have also tried using older versions of the gem ( 0.5.1 ) and had the same problem. 我也尝试使用旧版本的gem( 0.5.1 )并遇到相同的问题。

Any ideas? 有任何想法吗?

source:rubygems添加到Gemfile的顶部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Bundler找不到宝石 - Bundler can't find a gem 找不到宝石捆绑器Ruby - can't find gem bundler Ruby 在heroku上找不到gem bundler(> = 0)(Gem :: GemNotFoundException) - can't find gem bundler (>= 0) (Gem::GemNotFoundException) on heroku 捆绑器:在使用 gem 进行捆绑安装期间找不到带有可执行捆绑包 (Gem::GemNotFoundException) 的 gem bundler (>= 0.a) - Bundler: can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) during bundle install with gem 找不到'bundler'(> = 0),但是'gem list'具有'bundler'gem - Could not find 'bundler' (>= 0) but 'gem list' has 'bundler' gem Bundler失败,因为它找不到法拉第gem的兼容版本 - Bundler fails because it can't find compatible version of faraday gem TRAVIS CI:`find_spec_for_exe':找不到带有可执行包的 gem bundler (>= 0.a) (Gem::GemNotFoundException) - TRAVIS CI: `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) Elastic Beanstalk:找不到带有可执行包的 gem bundler (>= 0.a) (Gem::GemNotFoundException) - Elastic Beanstalk: can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) 为什么 Bundler 找不到这个 gem? - Why can't Bundler locate this gem? 即使出现在“宝石列表”中也未找到Rails - Rails not found even though it appears on “gem list”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM