[Catalyst] SchemaLoader?

Octavian Rasnita orasnita at gmail.com
Mon Dec 25 01:20:02 GMT 2006


From: "Hermida, Leandro" <Leandro.Hermida at fmi.ch>

> There is no Catalyst::Helper::Model::DBIC::SchemaLoader.  Use the
> DBIC::Schema helper with the create option in order to generate a model
> from a DBIx::Class::Schema::Loader setup.  See the
> Catalyst::Helper::Model::DBIC::Schema docs for information on this.
>
> Leandro

I thought that my problem could be due to the fact that I was using an older 
version of Catalyst, so I have installed the latest version of Catalyst, 
some modules by using PPM, and some using the CPAN shell.

Now I have an up-to-date framework, but I still cannot use that helper 
module for creating the schema. I have seen that the helper module is 
installed, but when giving the command:

perl script/tranzactiibursiere_create.pl model SecondDB DBIC::Schema 
TranzactiiBursiere::S2 create=static dbi:mysql:database=intranet root

it gives the error:

Attempt to free unreferenced scalar: SV 0x237e190, Perl interpreter: 
0x274324 at
D:/usr/site/lib/DBIx/Class/Schema/Loader/Base.pm line 501.
Can't use an undefined value as an ARRAY reference at 
D:/usr/site/lib/DBIx/Class
/Schema/Loader/DBI.pm line 96.
Attempt to free unreferenced scalar: SV 0x2413668, Perl interpreter: 
0x274324.
-----

I have tried to reinstall DBIx::Class::Schema::Loader because it might be 
wrong installed, but I couldn't do it because it uses the module
IO::Tty
and I couldn't install that module under Windows.

I have seen that for installing DBIx::Class::Schema::Loader, more other CPAN 
modules were missing. It is strange how that this module is installed 
without having those other modules installed.
I have also searched this module on ppm, but I couldn't find it.

I have installed all other modules needed, but I couldn't install IO::Tty, 
so I cannot install it properly from cpan.

I don't know if those errors given by the Catalyst helper module are because 
IO::Tty is missing or because there might be another problem.

So unfortunately I cannot use the Catalyst helper module for creating the 
Scheme under Windows.

Octavian




More information about the Catalyst mailing list