首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bundler找不到Win32服务gem,即使它出现在gem列表中

Bundler找不到Win32服务gem,即使它出现在gem列表中
EN

Stack Overflow用户
提问于 2010-09-09 04:41:45
回答 1查看 424关注 0票数 0

我正尝试在2.3.4 Rails应用程序中使用bundler,但在使用win32-service gem时遇到了问题。gem是通过发出gem install win32-service --platform mswin32命令安装的。我把它安装在bundler之外,因为bundler总是试图从源代码编译,这是非常失败的。

gem list的输出

代码语言:javascript
复制
win32-service (0.7.1 x86-mswin32-60)

bundle install的输出

代码语言:javascript
复制
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.  

我尝试使用source :gemcutter,但如上所述,bundler尝试使用不能构建的源包。

我也尝试过使用gem的旧版本(0.5.1),也遇到了同样的问题。

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2010-11-11 21:49:55

将rubygems添加到Gemfile的顶部。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3671708

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档