[英]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.