On 3/31/14, 7:38 PM, James McCoy wrote: > Ruby 2.0 has a few new RbConfig variables, {ruby,vendor,site}archhdrdir. > At least rubyarchhdrdir needs to be used to correctly locate > ruby/config.h, since it is architecture specific. > > The attached patch adapts configure.ac to recognize ruby2.0/rdoc2.0 and > swig.m4 to use rubyarchhdrdir if it's available. > > There's some additional work that may be needed in > build/ac-macros/swig.m4 and tools/dev/unix-build/Makefile.svn, as > sitearchdir isn't necessarily a subset of sitedir for ruby >=2.0. > > $ ruby1.9.1 -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]' > /usr/local/lib/site_ruby/1.9.1/x86_64-linux > > $ ruby1.9.1 -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]' > /usr/local/lib/site_ruby > > $ ruby2.0 -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]' > /usr/local/lib/x86_64-linux-gnu/site_ruby > > $ ruby2.0 -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]' > /usr/local/lib/site_ruby
Is this more of a Ruby 2.1 support than Ruby 2.0 support? Because OS X Mavericks (aka 10.9) shipped with Ruby 2.0 and I didn't need to make any modifications. Unfortunately, I've always found Ruby's version numbering to be confusing so I'm not sure if we're talking about the same things.