我正尝试在2.3.4 Rails应用程序中使用bundler,但在使用win32-service gem时遇到了问题。gem是通过发出gem install win32-service --platform mswin32命令安装的。我把它安装在bundler之外,因为bundler总是试图从源代码编译,这是非常失败的。
gem list的输出
win32-service (0.7.1 x86-mswin32-60)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. 我尝试使用source :gemcutter,但如上所述,bundler尝试使用不能构建的源包。
我也尝试过使用gem的旧版本(0.5.1),也遇到了同样的问题。
有什么想法吗?
发布于 2010-11-11 21:49:55
将rubygems添加到Gemfile的顶部。
https://stackoverflow.com/questions/3671708
复制相似问题