Bil Kleb said:
> The error message is little oblique,
>
> $ sudo gem install sqlite3

[snip]

> Gem files will remain installed in
> /usr/local/pkgs/ruby-1.8.2/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.0.0
> for inspection.
>    ruby extconf.rb install sqlite3\nchecking for sqlite3.h... no
>

I had to do a

  $ sudo gem install sqlite3 -- \
    --with-sqlite3-include=/usr/local/include \
    --with-sqlite3-lib=/usr/local/lib

It's funny, because the extconf.rb has

  dir_config( "sqlite3", "/usr/local", "/usr/local" )

When installing it from the source, changing it to

  dir_config( "sqlite3", "/usr/local/include", "/usr/local/lib" )

made it work, but I always thought the just passing the prefix to mkmf
would be enough.

Andre