【问题标题】:Could not find gem 'aws-3' in any of the gem sources listed in your Gemfile or available on this machine在您的 Gemfile 中列出的或在此机器上可用的任何 gem 源中找不到 gem 'aws-3'
【发布时间】:2016-10-20 08:51:45
【问题描述】:

我是 RoR 新手,在尝试安装 Amazon gem aws-3 时不断收到此错误:

Could not find gem 'aws-3' in any of the gem sources listed in your Gemfile or available on this machine.

我正在使用 Rails 5。

gem 本身似乎已成功安装:

$ gem install aws-s3
Successfully installed aws-s3-0.6.3
Parsing documentation for aws-s3-0.6.3
Done installing documentation for aws-s3 after 1 seconds
1 gem installed

将其添加到我的 Gemfile 中:

gem 'aws-3', :require => 'aws/s3'

在我列出的 Gemfile 顶部:

source 'https://rubygems.org'

【问题讨论】:

    标签: ruby-on-rails amazon-web-services rubygems


    【解决方案1】:

    您在Gemfile 中将aws-s3 拼错为aws-3。应该是

    gem 'aws-s3', :require => 'aws/s3'

    注意:没有名称为 aws-3 的 gem。这就是您收到错误的原因。

    【讨论】:

      【解决方案2】:

      正如@Arun Kumar 所说, 你需要在你的gemfile中添加aws-s3 gem。这里是github

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-04-02
        • 1970-01-01
        • 2012-02-11
        • 2017-07-14
        • 2018-08-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多