have_header('ruby.h') failing even though ruby.h exists

  1. anonymous

    I'm no rubyist, but my theory is that it's not looking in the right place. ruby.h is inside /usr/lib/ruby/1.8/i386-linux/ ...how can I tell Ruby/Command-T to look there for it?

  2. Greg Hurrell

    Check out the mkmf documentation. mkmf is what's used to generate the Makefile.

    Usually, it finds whatever is needed in the standard places, but you may be able to hack the extconf.rb file and use the find_header method to tell it to look in a particular place.

  3. anonymous

    I fixed the issue. Turns out, Fedora 15 doesn't have gcc installed by default, so that was the problem, but the error messages weren't helpful at all in figuring that out.

Reply

This topic is now closed.