Created
October 10, 2011 05:04
-
-
Save jasdeepsingh/1274666 to your computer and use it in GitHub Desktop.
/config/initializers/s3.rb:1:in `<top (required)>': uninitialized constant AWS (NameError) - AWS-S3 Gem not working Mac OS X Lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
No problem Sir! Pleasure is mine!
Why is this?
@toptierlabs: You mean why we get this error???
Sorry, I mean why :require => 'aws/s3' fixes it?
@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!
It's clear! Thank you.
Anytime sir!!
Jasdeep
Sent from my iPhone, So, please excuse any errors.
…On 2012-01-25, at 2:44 PM, toptierlabs ***@***.*** wrote:
It's clear! Thank you.
---
Reply to this email directly or view it on GitHub:
https://gist.github.com/1274666
Thanks!
If some got to this thread in 2018 -> See this thread with the same problem. https://stackoverflow.com/a/49222325/1625253
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks so much for adding this...