I have the gem specificed in my Gemfile, installing from a Github repo:
gem 'surveygizmo', :git => 'git://github.com/ample/surveygizmo.git'
When I do bundle update, included in the list, I see:
Using surveygizmo (0.0.1) from git://github.com/ample/surveygizmo.git (at master)
But when attempting to start my sinatra app (using ‘ruby go.rb’), it says it can’t find surveygizmo:
/Users/jeff/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- surveygizmo (LoadError)
… but I don’t understand why. By everything I’ve seen, it’s installing. But then it says it’s not. Any idea why>
I’ve pulled at straws all day and am completely lost. I see “1.9.1” in the error, but RVM is pointed at 1.9.3. ‘RVM list’ displays this:
$ rvm list
rvm rubies
ruby-1.8.7-p357 [ i686 ]
ruby-1.9.2-p290 [ x86_64 ]
=> ruby-1.9.3-p0 [ x86_64 ]
[edit]: it’s not showing when I do gem list
$ gem list
*** LOCAL GEMS ***
activesupport (3.2.8)
addressable (2.3.2)
bundler (1.1.5 ruby)
...(others)....
rake (0.9.2)
shotgun (0.9)
simple_oauth (0.1.9)
sinatra (1.3.3)
thin (1.4.1)
You need to prefix your command:
This will ensure bundler is loaded and all Bundler gems will be available, especially the
:gitgems.