From: Alex Fenton Date: 2007-12-27T07:19:43+09:00 Subject: Re: Paths, environment variables, etc. for building C extensions with Ruby 1.9? M. Edward (Ed) Borasky wrote: > Are there some paths or environment variables I need to set with Ruby > 1.9.0-0 to build gems with C code in them? One thing that I couldn't find to build C extensions with in the released 1.9.0 is the path to ruby/config.h. Config::CONFIG has the paths to the other header files but I had to fake this one with File.join(Config::CONFIG["rubyhdrdir"], Config::CONFIG['arch']) Also there doesn't seem to be a convenient Config key with the whole set of -I flags needed: includes = [ Config::CONFIG["rubyhdrdir"], Config::CONFIG["sitehdrdir"], Config::CONFIG["vendorhdrdir"], File.join(Config::CONFIG["rubyhdrdir"], Config::CONFIG['arch']) ] $ruby_includes = " -I " + includes.join(' -I ') thanks very much to everyone who's worked on 1.9.0 alex