Hallo Luis,
gem install sqlite3 --platform=ruby -- --with-opt-dir=/blabla/sqlcipher
Building native extensions. This could take a while...
Successfully installed sqlite3-1.3.7
1 gem installed
I dont know these process take the crypto-library or not...
Test (is running with sqlcipher-console successfully):
require 'sqlite3'
=> true
db = SQLite3::Database.new("/blabla/testcipher.db")
=> #<SQLite3::Database:0x91e7554>
db.execute("PRAGMA key='passwort';")
=> []
db.execute("SELECT * FROM plants;")
SQLite3::NotADatabaseException: file is encrypted or is not a database
from /var/lib/gems/1.9.1/gems/sqlite3-1.3.7/lib/sqlite3/database.rb:91:in `initialize'
from /var/lib/gems/1.9.1/gems/sqlite3-1.3.7/lib/sqlite3/database.rb:91:in `new'
from /var/lib/gems/1.9.1/gems/sqlite3-1.3.7/lib/sqlite3/database.rb:91:in `prepare'
from /var/lib/gems/1.9.1/gems/sqlite3-1.3.7/lib/sqlite3/database.rb:134:in `execute'
from (irb):4
from /usr/bin/irb:12:in `<main>'
It looks like I have no luck (and little knowledge). I use debian 7.0 i386.
Greets Thomas