On Jun 24, 2009, at 02:50 , Jan Martin wrote:

> Does anyone know how to enable the sqlite extension mechanism from  
> ruby?
> It seems it's switched off by default for security reasons.
>
> Error I get with the code above:
>
> ruby test.rb
> /home/me/.gem/ruby/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/errors.rb: 
> 62:in
> `check': not authorized (SQLite3::SQLException)
>  from

"not authorized" via line 8 of your script (the load_extension part).  
This seems more like a permissions thing. You may want to look into  
that (google might be your friend here) or you may want to look in the  
files/lines listed in the stack trace for a clue.