newrelic_platform_plugins
newrelic_platform_plugins copied to clipboard
bundler and fastercsv dependencies
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!
Ran into this as well. Same OS (Ubuntu 12.04).
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.?
Indeed, this should really be specified in the gemspec.