Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
/config/initializers/s3.rb:1:in `<top (required)>': uninitialized constant AWS (NameError) - AWS-S3 Gem not working Mac OS X Lion
# If you are facing such an Error while installing/working with the aws-s3 gem
# /config/initializers/s3.rb:1:in `<top (required)>': uninitialized constant AWS (NameError)
# try adding this to your Gemfile instead..
gem 'aws-s3', :require => 'aws/s3'
# I was having this issue on Mac OS X Lion with aws-s3 gem 0.6.2
@mcelaney

Thanks so much for adding this...

@jasdeepsingh

No problem Sir! Pleasure is mine!

@toptierlabs

Why is this?

@jasdeepsingh

@toptierlabs: You mean why we get this error???

@toptierlabs

Sorry, I mean why :require => 'aws/s3' fixes it?

@jasdeepsingh

@toptierlabs: This is because the library names specified for this gem are different than the actual gem name... the line

:require => 'aws/s3'

just lets bundler know what files to include for this gem. Let me know if that clears your doubt? Thanks!

@toptierlabs

It's clear! Thank you.

@jasdeepsingh
@leandro-repo

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.