[Rubyinstaller-devel] Trying to compile sqlite3

Fabio Akita fabioakita at gmail.com
Sat Jul 26 15:37:03 EDT 2008


Hi, Luis I am re-copying the question I sent you here in the list.

I've built the most current One-Click installer and it worked great. I
installed the devkit version and I am now trying to install the
sqlite3-ruby gem.

C:\>gem install sqlite3-ruby -- --with-sqlite3-dir=c:/src/sqlite-source-3_6_0
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
        ERROR: Failed to build gem native extension.

c:/ruby18/bin/ruby.exe extconf.rb install sqlite3-ruby --
--with-sqlite3-dir=c:/src/sqlite-source-3_6_0
checking for fdatasync() in -lrt... no
checking for sqlite3.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/ruby18/bin/ruby
        --with-sqlite3-dir
        --with-sqlite3-include
        --without-sqlite3-include=${sqlite3-dir}/include
        --with-sqlite3-lib
        --without-sqlite3-lib=${sqlite3-dir}/lib
        --with-rtlib
        --without-rtlib


Gem files will remain installed in
c:/ruby18/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2 for inspection.
Results logged to
c:/ruby18/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2/ext/sqlite3_api/gem_make.out


I've downloaded the sqlite3 sources from:
http://www.sqlite.org/sqlite-source-3_6_0.zip

Am I missing something?

-- 
[]'s

Fabio Akita (www.akitaonrails.com)
Ruby on Rails Product Manager
Locaweb - Keep IT Simple.


More information about the Rubyinstaller-devel mailing list