You can try the following: compile sqlite3 as static library, install
somewhere in your home directory and then provide that option for the
gem install process
Download http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz
(in the sqlite3 source)
./configure --disable-shared --enable-static --prefix=/some/path/in/my/home
gem install sqlite3-ruby -- --with-sqlite3-dir=/some/path/in/my/home
Maybe that works?
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Chad Warren
aeb...@gmail.com
http://www.iamchad.com
I followed your instructions and I received the following when I ran: gem install sqlite3-ruby -- --with-sqlite3-dir=/home/iamchad/sqlite/sqlite-3.6.23.1root@scooter [/home/iamchad/sqlite/sqlite-3.6.23.1]# gem install sqlite3-ruby -- --with-sqlite3-dir=/home/iamchad/sqlite/sqlite-3.6.23.1Building native extensions. This could take a while...ERROR: Error installing sqlite3-ruby:ERROR: Failed to build gem native extension./usr/bin/ruby extconf.rb --with-sqlite3-dir=/home/iamchad/sqlite/sqlite-3.6.23.1checking for sqlite3.h... yeschecking for sqlite3_libversion_number() in -lsqlite3... yeschecking for rb_proc_arity()... nochecking for sqlite3_initialize()... nosqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
`make install` is correct, after you've done a "./configure
--prefix=$HOME/sqlite"
Then do "gem install sqlite3-ruby -- --with-sqlite3-dir=$HOME/sqlite"
So, the commands in full are:
$ tar zxvf sqlite-amalgamation-3.6.23.1.tar.gz
$ cd cd sqlite-3.6.23.1
$ mkdir $HOME/sqlite
$ ./configure --prefix=$HOME/sqlite
$ make && make install
$ sudo gem install sqlite3-ruby -- --with-sqlite3-dir=$HOME/sqlite
Hope that helps.
--
Aaron Patterson
http://tenderlovemaking.com/