vmware-archive / newrelic_pivotal_agent

MIT License
36 stars 42 forks source link

json dependency error during installation on Ubuntu 14.04 / Ruby 1.9 #70

Open dsears opened 8 years ago

dsears commented 8 years ago

On Ubuntu 14.04, following the installation steps and running bundle install yields this error:

json-2.0.2 requires ruby version ~> 2.0, which is incompatible with the current version, ruby 1.9.3p484

Is ruby 2+ a pre-requisite for this plugin, or should it work on 1.9?

ghost commented 6 years ago

Hi dsears ,

How did you solved this issue ? When i run bundle install i have this output

Fetching gem metadata from http://rubygems.org/......... Resolving dependencies... Using bundler 1.16.1 Using daemons 1.2.6 Using multipart-post 2.0.0 Using faraday 0.14.0 Using faraday_middleware 0.12.2 Fetching json 2.1.0 Installing json 2.1.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/json-2.1.0/ext/json/ext/generator

/usr/bin/ruby2.3 -r ./siteconf20180129-10093-scr5v4.rb extconf.rb creating Makefile

current directory: /var/lib/gems/2.3.0/gems/json-2.1.0/ext/json/ext/generator make "DESTDIR=" clean sh: 1: make: not found

current directory: /var/lib/gems/2.3.0/gems/json-2.1.0/ext/json/ext/generator make "DESTDIR=" sh: 1: make: not found

make failed, exit code 127

Gem files will remain installed in /var/lib/gems/2.3.0/gems/json-2.1.0 for inspection. Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/json-2.1.0/gem_make.out

An error occurred while installing json (2.1.0), and Bundler cannot continue. Make sure that gem install json -v '2.1.0' succeeds before bundling.

In Gemfile: newrelic_plugin was resolved to 1.3.1, which depends on json