From: Moru Date: 2010-04-22T02:03:38+09:00 Subject: Re: cannot find header-files May there is a 'Makefile' in the directory, GEM_HOME/gems/sqlite3-ruby-x.x.x/ext/, so you can figure out that file to set CC and CFLAGS for your environment. It seems like 'mkmf' is using CC which used to compiling her base ruby. I also got similar errors last one month, so I did edit Makefile and make extension directly and then install gems via setup.rb I did, 0. figure out Makefile $ vi sqlite3-ruby-x.x.x/ext/sqlite3_api/Makefile 1. compile extension. go to sqlite3-ruby-x.x.x/ext/sqlite3_api. and then, $ ruby extconf.rb (you can use --with-NAME-include or lib. this will work fine.) $ make $ make install 2. go to root of sqlite3-ruby. install gem directly, $ ruby setup.rb all --without-ext 3. all done. but be careful. this gem will not controlled under gem system. you can build gem also, not use setup.rb, if you want. my english is very poor, but I think you can very well. :) -- Moru On Wed, Apr 21, 2010 at 23:40, Michael Myers wrote: > have_header: checking for sqlite3.h... -------------------- no > > not working: > "/opt/studio/SOS11/SUNWspro/bin/cc -E -I. > -I/opt/csw/lib/ruby/1.8/sparc-solaris2.8 -I. -I/home/ssk > -I/opt/csw/include -D_FILE_OFFSET_BITS=64 -I/opt/csw/include -xO3 > -xarch=v8 -I/opt/csw/include  -KPIC    conftest.c -o conftest.i" > > working: > "gcc -E -I. -I/home/ssk/ruby/lib/ruby/1.8/sparc-solaris2.10 -I. > -I/home/ssk  -D_FILE_OFFSET_BITS=64  -g -O2    conftest.c -o conftest.i" > > By the looks of it, it seems to use a different compiler, how can i > change that? > -- > Posted via http://www.ruby-forum.com/. > >