Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Load Error: No such file to load -- rubygems HELP!!!

I'm trying to require ' rubygems ' in irb after installing awesome_print in Ruby. This is situation comes up in the first video on Hashes in the Ruby Foundations video series found here: http://teamtreehouse.com/library/ruby-foundations/hashes/creating-hashes

After installing awesome_print, then launching irb, I enter require ' rubygems ' as instructed, but the following error message is returned:

LoadError: no such file to load -- rubygems from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire' from (irb):1

HELP! I'd like to solve this so I can move forward

error message

3 Answers

Try this (http://lmgtfy.com/?q=no+such+file+to+load+--+rubygems). Lots of people have had the same error message.

Thanks Michael. I didn't think of doing this right off the bat. If I did think of this and went through the various posts regarding the issue - and similar issues - I would have found a lot of helpful information, which would be helpful if I had any idea of how to program. But seeing that I'm using TreeHouse to learn programming for the first time (having 0 experience in it), none of the answers that Google has produced make any sense to me - probably because they're in a language (Ruby) that I don't speak. Either that, or my inability to understand the Google results exposes an glaring mental deficiency, which I'll get right on top of after someone here at TreeHouse community explains the answer in simple terms.

hmm... looks like you have white spaces issue. Try this require 'rubygems' (there are no spaces between single quote and the word rubygems)

hmm... looks like you have white spaces issue. Try this require 'rubygems' (there are no spaces between single quote and the word rubygems)