Jamis Buck wrote:
> Mike J. wrote:
> >
> > $ ruby -v
> > ruby 1.6.4 (2001-06-04) [i586-beos]
> >
> > sqlite-ruby:
> >
> > $ ruby extconf.rb
> > checking for main() in -lsqlite... no
> > checking for sqlite.h... yes
> > checking for sqlite_open() in -lsqlite... no
> >
>
> Try looking in the mkmf.log file -- it should explain why the last check
> is failing.  Or, email it (mkmf.log) to me (directly:
> jgb3 / email.byu.edu) and I'll take a look at it (I'm the author of
> sqlite-ruby, so I suppose it's my responsibility...;)).
>
> - Jamis
>

I added a dir_config to the extconf.rb file to install.

"D:/SQLite" <your path here> contains two sub-directories (include & lib)
which mkmf.rb uses to create the Makefile.  Without this, sqlite.h and
sqlite.lib are sought in the <?>standard search path</?>.

#-----------------------
require 'mkmf'

dir_config("sqlite", "D:/SQLite")  # <--- ADDED line

have_library( "sqlite" )
if have_header( "sqlite.h" ) and have_library( "sqlite", "sqlite_open" )
  create_makefile( "_sqlite" )
end
#-----------------------

dir_config allows command line parameters of (e.g.) ...
   --with-sqlite-lib=usr/local/env/dev/nul/blah
(That's one Windows user's idea of a non-Windows pathname)


daz