benmanns/google-short-links — Issue #2: Ruby Unable to Find Gem
Author: mralexgray
Created: 2011-11-29 06:45:26+00:00
State: open

I am getting gem errors, no matter how i try to "require" it. BTW, it isn't clear how to require it.. which may be my problem…. Installed the "normal" way, and...

#!/usr/bin/ruby
require 'rubygems'
require 'GoogleShortLinks'

> $ short link
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- GoogleShortLinks (LoadError)

Then I tried all sorts of combos..

#!/usr/bin/ruby
require 'macgems'
# require 'macgems'
require 'rubygems'
#require 'rubygems'
require 'GoogleShortLinks'
# require 'GoogleShortLinks'
require 'google-short-links'
# require 'google-short-links'

> `gem_original_require': no such file to load -- GoogleShortLinks (LoadError)

Yet, ```gem list```

*** LOCAL GEMS ***
…
fastthread (1.0.7)
fssm (0.2.7)
git (1.2.5)
**google-short-links (0.1.1)**
haml (3.1.2)
…

tried reinstalling via ```sudo gem install google-short-links```
> Successfully installed google-short-links-0.1.1
> 1 gem installed
> Installing ri documentation for google-short-links-0.1.1…
> Installing RDoc documentation for google-short-links-0.1.1...

Same story. Whats going on?