Im'm trying to install this:
by doing sudo gem install travis
but I get this error:
ERROR: Error installing travis:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.18/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20170310-8171-xumwrs.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.18 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.18/gem_make.out
How do I remove what I installed and install it correctly?
I also faced a similar problem when I was trying to install travis.
ruby-dev
was not installed in my system. I reran the command to install travis after installingruby-dev
.I installed
ruby-dev
using the command below.I referred to this answer. Hope it helps. https://stackoverflow.com/questions/4304438/gem-install-failed-to-build-gem-native-extension-cant-find-header-files