![](/img/trans.png)
[英]Could not find gem 'pg (= 0.12.4) ruby' in any of the gem sources listed in your Gemfile or available on this machine
[英]Could not find gem 'aws-3' in any of the gem sources listed in your Gemfile or available on this machine
我是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'
您在Gemfile
aws-s3
拼写为aws-3
。 它应该是
gem 'aws-s3', :require => 'aws/s3'
注意:没有名称为aws-3
宝石。 这就是为什么您得到错误。
正如@Arun Kumar所说的那样,您需要在gemfile中添加aws-s3 gem 。这是github
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.