Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So in my case, I'm upgrading a Ruby install from a low patch level to a higher one. I wanted know exactly what flags, if any, were used in the previous ./configure step of the installation process.

Is there a way to determine this unilaterally? At the very least, is there a way to determine this for Ruby?


share|improve this question
Probably do not have the "old" build directory anymore do you? You could peek in the config.cache file or w/e it's called. But I am guessing that is long gone. – Tim Dec 15 '11 at 18:02
Yeah, it's long gone, but good idea though :) – Abel Dec 20 '11 at 19:16
up vote 1 down vote accepted

With ruby you can look at rbconfig.rb, specifically CONFIG["configure_args"]. On my Fedora 16 box it is /usr/lib64/ruby/1.8/x86_64-linux/rbconfig.rb.

share|improve this answer
Brilliant! That's EXACTLY what I'm looking for. On our machine it's at /usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb. Thanks man!! – Abel Dec 20 '11 at 19:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.