newrelic_platform_plugins icon indicating copy to clipboard operation
newrelic_platform_plugins copied to clipboard

bundler and fastercsv dependencies

Open carillonator opened this issue 11 years ago • 3 comments

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!

carillonator avatar Sep 09 '13 17:09 carillonator

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

till avatar Sep 12 '13 22:09 till

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.?

joshlewis avatar Aug 18 '14 22:08 joshlewis

Indeed, this should really be specified in the gemspec.

jszwedko avatar Oct 23 '14 19:10 jszwedko