[Catalyst] Error with MiniMojo Sample

Jürgen Peters taulmarill at xgn.de
Thu Jun 23 13:42:00 CEST 2005

On Thu, 23 Jun 2005 13:09:30 +0200, Jean-Michel Caricand wrote
> portable1:/home/jmcaricand/MiniMojo# script/minimojo_create.pl
> model CDBI CDBI dbi:SQLite:/home/jmcaricand/MiniMojo/minimojo.db
>  exists
> "/home/jmcaricand/MiniMojo/script/../lib/MiniMojo/M/CDBI.pm"
> DBD::SQLite::db prepare failed: file is encrypted or is not a
> database(26) at dbdimp.c line 268 at
> /usr/local/share/perl/5.8.4/Class/DBI/Loader/SQLite.pm line
> 92, <DATA> line 1.
> Can't call method "execute" on an undefined value at
> /usr/local/share/perl/5.8.4/Class/DBI/Loader/SQLite.pm line
> 93, <DATA> line 1.
> portable1:/home/jmcaricand/MiniMojo#

does your version of DBD::SQLite match the version of the SQLite binary you
have used to create the database? a mismatch here is the most common reason
for that error.
$DBD::SQLite::VERSION < 1 is SQLite v2.x while $DBD::SQLite::Version >= 1
would be SQLite v3.x. if you have SQLite v2.x and don't want to change that
then get DBD::SQLite2.


More information about the Catalyst mailing list