Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Mike Wilson
RE: Building sqlite-ruby with non-std sqlite [ reply ]  
2006-08-03 08:25
A bit of searching through the files and messages revealed this solution:

cd /path/to/ruby/lib/ruby/1.8/i686-linux
ln -s /path/to/sqlite3.h .

Your actual ruby dir will vary. I found it by looking in ext/sqlite3_api/mkmf.log and examining the "-I..." directories which are the places gcc will look for include files.

By: Mike Wilson
Building sqlite-ruby with non-std sqlite dir [ reply ]  
2006-08-02 13:04
I am trying to build sqlite-ruby from source. I have sqlite installed in a non-standard place as I don't have root access. Some messages imply I can specify the directory, but setup.rb fails. If I try the simple way, I get:
$ruby setup.rb config
checking for sqlite3.h... no

But this doesn't work either:
$ruby setup.rb config \ --with-sqlite3-dir=$HOME/local

config: unknown option --with-sqlite3-dir=/home/mrw/local

sqlite3.h is definately in $HOME/local/include

How can I configure and build sqlite-ruby?