Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an account on a server that is not a super user. Because of this I've used RVM to install Ruby, and I've also installed a few gems.

However, the sqlite3-ruby gem does not want to install, since the sqlite3 binary is too old. I've downloaded a newer binary from the sqlite3 homepage, but I can't figure out how to point gem in the direction of the newer binary?

share|improve this question

Use with-sqlite3-dir options:

$ gem install sqlite3
Fetching: sqlite3-1.3.3.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3:
    ERROR: Failed to build gem native extension.

$ gem install sqlite3 -- --with-sqlite3-dir=/home/ooshro/usr
Building native extensions.  This could take a while...
Successfully installed sqlite3-1.3.3
1 gem installed
Installing ri documentation for sqlite3-1.3.3...
Installing RDoc documentation for sqlite3-1.3.3...

ls -R usr/
include  lib  share

sqlite3ext.h  sqlite3.h

libsqlite3.a  pkgconfig




changelog.Debian.gz  changelog.gz  changelog.html.gz  copyright  README

$ rvm list

rvm rubies

=> ruby-1.9.2-head [ i386 ]
share|improve this answer

Try to edit your PATH environment variable to have the directory where your own sqlite3 binary resides.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.