Browse Source

ruby1.9.1-dev is a test requirement

Without this package installed on the system the following error triggers when bundle attempts to install the "json" package with native extensions:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from extconf.rb:1:in `<main>'

Gem files will remain installed in /home/elemoine/src/fuel-plugin-lma-collector/.bundled_gems/ruby/1.9.1/gems/json-1.8.3 for inspection.
Results logged to /home/elemoine/src/fuel-plugin-lma-collector/.bundled_gems/ruby/1.9.1/gems/json-1.8.3/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
ERROR: InvocationError: '/usr/local/bin/bundle install --path /home/elemoine/src/fuel-plugin-lma-collector/.bundled_gems'

Change-Id: I07d1b69a10892238aea7f21ecb8d7044f39b8ab1
(cherry picked from commit d03dcefe4d)
Éric Lemoine 3 years ago
parent
commit
26fc1946da
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      doc/source/dev/tests.rst

+ 1
- 1
doc/source/dev/tests.rst View File

@@ -5,6 +5,6 @@ You need to have `tox` and `bundler` installed for running the tests.
5 5
 
6 6
 Quickstart for Ubuntu Trusty::
7 7
 
8
-    apt-get install tox ruby
8
+    apt-get install tox ruby ruby1.9.1-dev
9 9
     gem install bundler
10 10
     tox

Loading…
Cancel
Save