You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have suspicions this might be from the requirement to use ruby 2.2.
I am hoping not, as this means removing not only ruby, but puppet and a ton of other dependencies to manually install a later version of ruby, as the CentOS repos are still using 2.0.
Stacktrace
/home/luke/.gem/ruby/gems/rainbow-2.2.1/spec/unit/string_utils_spec.rb
/home/luke/.gem/ruby/gems/rainbow-2.2.1/spec/unit/wrapper_spec.rb
Building native extensions. This could take a while...
/usr/bin/ruby mkrf_conf.rb
rake RUBYARCHDIR=/home/luke/.gem/ruby/gems/rainbow-2.2.1/lib RUBYLIBDIR=/home/luke/.gem/ruby/gems/rainbow-2.2.1/lib
ERROR: Error installing inspec:
ERROR: Failed to build gem native extension.
Building has failed. See above output for more information on the failure.
The text was updated successfully, but these errors were encountered:
@lukehinds the stacktrace and error isn't complete enough to determine what the problem is unfortunately. I suspect it's because gcc or other required libs aren't available for building the rainbow gem.
That said, with the InSpec release scheduled for today, our minimum Ruby version will be 2.1 because some dependencies (nokogiri, specifically) has a minimum version of 2.1, and Ruby 2.0 is end-of-life.
If you have an issue which requires you to keep Ruby 2.0 as your primary Ruby on your system, I'd like to recommend you install InSpec via our omnibus packages at https://downloads.chef.io/inspec. These packages are available for a number of OSs using the OS-native package format and include their own Ruby which will not conflict with the system Ruby.
Thank you for submitting this issue! I hope the omnibus packages can help you! If not, please ask for this issue to be reopened and we're happy to help troubleshoot as we're able.
Description
Cannot install to CentOS7
InSpec and Platform Version
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
Replication Case
gem install inspec fails
Full stack trace below.
Possible Solutions
I have suspicions this might be from the requirement to use ruby 2.2.
I am hoping not, as this means removing not only ruby, but puppet and a ton of other dependencies to manually install a later version of ruby, as the CentOS repos are still using 2.0.
Stacktrace
The text was updated successfully, but these errors were encountered: