【问题标题】:Bundler can't find win32-service gem even thought it appears in gem list即使认为它出现在 gem 列表中,Bundler 也找不到 win32-service gem
【发布时间】:2010-09-08 20:41:45
【问题描述】:

我正在尝试在 2.3.4 Rails 应用程序中使用捆绑程序,但遇到了 win32-service gem 的问题。通过发出gem install win32-service --platform mswin32 安装了gem。我将它安装在 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 但如上所述捆绑器尝试使用未构建的源包。

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

有什么想法吗?

【问题讨论】:

    标签: ruby-on-rails rubygems bundler


    【解决方案1】:

    source :rubygems 添加到 Gemfile 的顶部。

    【讨论】:

    • 这对我没有帮助,gem 已经安装,所以捆绑器应该从系统中获取它。 gem 也在 vendor/cache 中。
    猜你喜欢
    • 2018-04-02
    • 1970-01-01
    • 1970-01-01
    • 2016-07-11
    • 1970-01-01
    • 1970-01-01
    • 2018-04-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多