Subject: | Failed DBI connection |
Date: | Fri, 27 Jul 2012 15:31:42 +0000 |
To: | "'bug-Catalyst-Manual [...] rt.cpan.org'" <bug-Catalyst-Manual [...] rt.cpan.org> |
From: | "marielle vigouroux (JIC)" <marielle.vigouroux [...] jic.ac.uk> |
Hi,
Going through the Tutorial, Chapter 3
Create Static DBIx::Class Schema Files
I am getting the following error when issuing this command
$ script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
create=static dbi:SQLite:myapp.db \
on_connect_do="PRAGMA foreign_keys = ON"
exists "/home/catalyst/MyApp/script/../lib/MyApp/Model"
exists "/home/catalyst/MyApp/script/../t"
DBIx::Class::Schema::Loader::make_schema_at(): DBI Connection failed: Can't connect to data source 'SQLite:myapp.db' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /home/catalyst/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1248 at /home/catalyst/perl5/lib/perl5/Catalyst/Helper/Model/DBIC/Schema.pm line 635
Other information:
catalyst@catalyst:~/MyApp$ perl -MCatalyst::Model::DBIC::Schema\ 999
Catalyst::Model::DBIC::Schema version 999 required--this is only version 0.54.
BEGIN failed--compilation aborted.
catalyst@catalyst:~/MyApp$ perl -MDBD::SQLite\ 999
DBD::SQLite version 999 required--this is only version 1.33.
BEGIN failed--compilation aborted.
catalyst@catalyst:~/MyApp$ perl -v
This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi
(with 56 registered patches, see perl -V for more detail)
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
catalyst@catalyst:~/MyApp$ uname -a
Linux catalyst 2.6.32-5-686 #1 SMP Mon Jun 13 04:13:06 UTC 2011 i686 GNU/Linux
Any help greatly appreciated.
Many thanks,
Marielle