我是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 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'
答案 0 :(得分:1)
aws-s3
中aws-3
Gemfile
拼错了gem 'aws-s3', :require => 'aws/s3'
。它应该是
aws-3
注意:没有名为<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>
的宝石。这就是你收到错误的原因。
答案 1 :(得分:1)
正如@Arun Kumar所说, 您需要在gemfile中添加aws-s3 gem。这是github