From: Loran Kary Date: 2013-02-15T03:46:50+09:00 Subject: Re: Can't load gems Ryan Davis wrote in post #1096838: > > There is no minitest.rb so it bitches. There is a minitest/unit.rb so it > finds it. The easiest way to figure that out is to just look. I used > `gem contents` to do that but I also often just go into the code and > poke around. > > In your case, there is no actionmailer.rb, however, there is an > action_mailer.rb > Thanks Ryan, for that help. Actually, I was just using actionmailer as an example, because it came at the top of my list of installed gems. My real problem is that I cannot load my own gem which I created and installed myself. I call it 'timecode. bash-3.2$ gem list timecode *** LOCAL GEMS *** timecode (0.0.1) bash-3.2$ gem contents timecode | grep lib /Users/kary/.rvm/gems/ruby-1.9.3-p286/gems/timecode-0.0.1/lib/timecode.rb bash-3.2$ gem which timecode ERROR: Can't find ruby library file or shared library timecode As you can see, there is a lib/timecode.rb yet it won't load. /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- timecode (LoadError) Should I be concerned that I do not see any gems directory in my LOAD_PATH? /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1 /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/x86_64-darwin12.2.0 /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/vendor_ruby/1.9.1 /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin12.2.0 /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/vendor_ruby /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1 /Users/kary/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-darwin12.2.0 bash-3.2$ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.8.24 - RUBY VERSION: 1.9.3 (2012-10-12 patchlevel 286) [x86_64-darwin12.2.0] - INSTALLATION DIRECTORY: /Users/kary/.rvm/gems/ruby-1.9.3-p286 - RUBY EXECUTABLE: /Users/kary/.rvm/rubies/ruby-1.9.3-p286/bin/ruby - EXECUTABLE DIRECTORY: /Users/kary/.rvm/gems/ruby-1.9.3-p286/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-12 - GEM PATHS: - /Users/kary/.rvm/gems/ruby-1.9.3-p286 - /Users/kary/.rvm/gems/ruby-1.9.3-p286@global - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ bash-3.2$ echo $GEM_PATH /Users/kary/.rvm/gems/ruby-1.9.3-p286:/Users/kary/.rvm/gems/ruby-1.9.3-p286@global -- Posted via http://www.ruby-forum.com/.