ruby - used bundler and rbenv -- but still cannot find gems -
i run bundle install
, list saying gems installed.
bundle show shotgun => /usr/local/lib/ruby/gems/2.1.0/gems/shotgun-0.9
shotgun webpost.rb =>
/users/angela/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': not find 'shotgun' (>= 0) among 8 total gem(s) (gem::loaderror) /users/angela/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec' /users/angela/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem' /usr/local/bin/shotgun:22:in `<main>'
problem: bundler says gems installed, both running them or trying require irb shows them unfound! how can access gems?
you need run commands within context of bundler:
bundle exec shotgun webpost.rb
Comments
Post a Comment