Created
May 4, 2012 15:17
-
-
Save cjs226/2595437 to your computer and use it in GitHub Desktop.
ticketmaster gem fails to be found in script
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
Beginning of script: | |
#!/usr/bin/ruby | |
require 'ticketmaster' | |
require 'ticketmaster-lighthouse' | |
<snip> | |
Script failing when run: | |
$ ./lh.rb | |
./lh.rb:2:in `require': no such file to load -- ticketmaster (LoadError) | |
from ./lh.rb:2 | |
But the gem appears to be installed: | |
$ gem list ticketmaster | |
*** LOCAL GEMS *** | |
ticketmaster (0.7.0, 0.6.10) | |
ticketmaster-lighthouse (0.8.0) | |
$ /usr/bin/ruby -rubygems -e 'require "ticketmaster"' | |
$ /usr/bin/ruby -rubygems -e 'require "ticketmasterX"' | |
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- ticketmasterX (LoadError) | |
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from -e:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding require 'rubygems' did the trick