Open the-ashh opened 7 years ago
Your Ruby installation is missing a header file /usr/lib/ruby/include/ruby.h
and can't compile FFI. Strictly speaking, this is not a problem with travis.rb
.
ok then. do you have any suggestion to be able to fix this
@cooler9711 You'll need to have a working Ruby environment. If it's Ubuntu, for example, we have https://github.com/travis-ci/travis.rb#ubuntu. For other distros, I suspect the issue is similar; find a package that provides the header file you need to compile FFI.
Not to necro this, but since it's still open and google sent me here for this error initially:
As BanzaiMan pointed out, this problem happens when the ruby header files are missing. These exist in a separate package from the base ruby install, making it possible to have a "working" Ruby environment, but not able to compile extension modules. These headers exist in a -dev
package for Debian / Ubuntu, and can be installed with:
sudo apt-get install ruby-dev
This is mentioned (without the accompanying error) in the main readme under Troubleshooting > Ubuntu (https://github.com/travis-ci/travis.rb#ubuntu)
I confirmed installing the above package resolved the problem posted for me, and this issue is probably safe to be closed.
when trying to install travis.rb, this happens
what should i do now? attached is the .out file gem_make.txt