From: Jan Svitok Date: 2007-03-01T22:21:00+09:00 Subject: Re: Installing .gem in an embedded system On 3/1/07, Angelo wrote: > Hi, > I am trying to install sqlite3-ruby-1.1.0.gem on an embedded system (with > ARM cpu). > > From the target I use the command > gem install sqlite3-ruby-1.1.0.gem > but the installation fail, saying that sqlite3.h cannot be found. > > This is the mkmf.log: > > --------- mkmf.log ----------- > > have_header: checking for sqlite3.h... -------------------- no > > "arm-linux-gcc -E -I. -I/usr/local/lib/ruby/1.8/arm-linux -I. -I/include/ > -I/usr > checked program was: > /* begin */ > 1: #include > /* end */ > > -------------------- > > > It seems that the installation process wants a gcc compiler but on my > target I have not a toolchain. > > How can I install sqlite3-ruby gem on my target without compiling? extract the sources, compile the extension where you have the toolchain, and then repack with binary extension (inspire yourself with -win32 gems -- typically win32 has no toolchain installed as well) I'll leave the details up to you ;-)