Hi all I am having troubles building the sqlite-ruby gem. I don't think it is a gem problem, but a extconfig issue. % gem install sqlite-ruby -v 2.2.3 Attempting local installation of 'sqlite-ruby' Local gem file not found: sqlite-ruby*.gem Attempting remote installation of 'sqlite-ruby' Select which gem to install for your platform (powerpc-darwin7.7.0) 1. sqlite-ruby 2.2.3 (mswin32) 2. sqlite-ruby 2.2.3 (ruby) 3. Cancel installation > 2 Building native extensions. This could take a while... ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension. Gem files will remain installed in /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3 for inspection. ruby extconf.rb install sqlite-ruby -v 2.2.3\nchecking for main() in -lsqlite... no checking for sqlite.h... no Results logged to /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3/ext/gem_make.out For some reason, it is not finding my sqlite library and include file. I have them, and I have even set environment variables to locate them: % env | grep -i flag CFLAGS=-I/Users/jdf/local/include LDFLAGS=-L/Users/jdf/local/lib % ls /Users/jdf/local/include/ sqlite.h % ls /Users/jdf/local/lib libsqlite.0.8.6.dylib libsqlite.a libsqlite.la libsqlite.0.dylib libsqlite.dylib pkgconfig The following should work, but does not: % cd /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3/ext % ruby extconf.rb checking for main() in -lsqlite... no checking for sqlite.h... no Are there some tricks to get extconf to find my lib and include files? -- Jim Freeze Ruby: I can explain it to ya but I can't understand it fer ya.