CentOS 7 build failing sass gem test install due to old Ruby version
geerlingguy opened this issue · 2 comments
geerlingguy commented
TASK [geerlingguy.ruby : Install configured gems.] *****************************
failed: [instance] (item=sass) => {"changed": false, "cmd": "/bin/gem install --user-install --no-document sass", "item": "sass", "msg": "WARNING: You don't have /root/.gem/ruby/bin in your PATH,
gem executables will not run.
ERROR: Error installing sass:
rb-inotify requires Ruby version >= 2.2.", "rc": 1, "stderr": "WARNING: You don't have /root/.gem/ruby/bin in your PATH,
gem executables will not run.
ERROR: Error installing sass:
rb-inotify requires Ruby version >= 2.2.
", "stderr_lines": ["WARNING: You don't have /root/.gem/ruby/bin in your PATH,", " gem executables will not run.", "ERROR: Error installing sass:", " rb-inotify requires Ruby version >= 2.2."], "stdout": "Successfully installed rb-fsevent-0.10.3
Building native extensions. This could take a while...
Successfully installed ffi-1.9.25
", "stdout_lines": ["Successfully installed rb-fsevent-0.10.3", "Building native extensions. This could take a while...", "Successfully installed ffi-1.9.25"]}
See failed build: https://travis-ci.org/geerlingguy/ansible-role-ruby/jobs/468516715#L765
geerlingguy commented
Going to switch the test to use json
instead of sass
for now (https://rubygems.org/gems/json). I think it should work with CentOS 7.
geerlingguy commented
Ha, now:
TASK [geerlingguy.ruby : Install Bundler.] *************************************
fatal: [instance]: FAILED! => {"changed": false, "cmd": "/bin/gem install --no-user-install --no-document bundler", "msg": "ERROR: Error installing bundler:\n\tbundler requires Ruby version >= 2.3.0.", "rc": 1, "stderr": "ERROR: Error installing bundler:\n\tbundler requires Ruby version >= 2.3.0.\n", "stderr_lines": ["ERROR: Error installing bundler:", "\tbundler requires Ruby version >= 2.3.0."], "stdout": "", "stdout_lines": []}
So I'll disable bundler install on CentOS 7 for now.