Hi,
After reading the discussion about "the death of Mailing lists", I thought it would be good to post this question directly here:
I have a gem, I want to build the C extensions for. The gem source is located here: https://github.com/nirnanaaa/cracklib .
If I build the source now on my mac (Mavericks) all the headers are found and the gem gets built. All test cases pass correctly
.
Building the gem on Travis results in an error:
...
/home/travis/.rvm/rubies/ruby-2.1.1/bin/ruby -I. ../../../../ext/cracklib/extconf.rb
checking for sys/types.h... *** ../../../../ext/cracklib/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=../../../../ext/cracklib
--curdir
--ruby=/home/travis/.rvm/rubies/ruby-2.1.1/bin/ruby
/home/travis/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
...
However the packages "build-essential gcc automake" got installed on the before_install step of travis' config
Maybe this is related to changing the HEADER_DIRS and LIB_DIRS in the extconf.rb ?
Hope someone could help.
Thanks,
Flo