我正在尝试安装这个:
通过这样做sudo gem install travis
,但我得到了这个错误:
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
如何删除我安装的内容并正确安装?
当我尝试安装 travis 时,我也遇到了类似的问题。
ruby-dev
没有安装在我的系统中。我重新运行命令安装 travis 安装后ruby-dev
。我
ruby-dev
使用下面的命令安装。我参考了这个答案。希望能帮助到你。https://stackoverflow.com/questions/4304438/gem-install-failed-to-build-gem-native-extension-cant-find-header-files