railsware / newrelic_platform_plugins

MIT License
42 stars 66 forks source link

bundler and fastercsv dependencies #22

Open carillonator opened 10 years ago

carillonator commented 10 years ago

Hi, appreciate your work on this plugin. Not being real familiar with ruby/gems, I didn't realize this ominous-looking trace just means that I need to gem install bundler:

$ newrelic_haproxy_agent install    
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.8/gems/newrelic_haproxy_agent-1.0.1/lib/newrelic_haproxy_agent.rb:4
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.8/gems/newrelic_haproxy_agent-1.0.1/bin/newrelic_haproxy_agent:5
    from /usr/local/bin/newrelic_haproxy_agent:19:in `load'
    from /usr/local/bin/newrelic_haproxy_agent:19

same with fastercsv. Is there any way to have them as dependencies of the newrelic_haproxy_agent gem? Or mention in your README that they are required and may need to be installed separately? In my case, it was needed with Ubuntu 12.04. Thanks!

till commented 10 years ago

Ran into this as well. Same OS (Ubuntu 12.04).

joshlewis commented 9 years ago

I had to sudo gem install bundler to get past this, too. Maybe that should be in the setup instructions, or the script should take care of it.?

jszwedko commented 9 years ago

Indeed, this should really be specified in the gemspec.