[Catalyst] new install, poastegressetup issues

Sebastian Riedel sri at oook.de
Wed Jul 13 20:16:31 CEST 2005


Am 13.07.2005 um 19:45 schrieb Stefan Kueppers:

> Hi all!
>
> Thanks for making catalyst! It is just what I had been looking for  
> having picked up on ruby on rails, taking  a glimpse at Maypole  
> with my preference for perl and being less than excited about being  
> stuck with Mason templating.
>
> I am just getting started to learn and have installed catalyst this  
> afternoon. Now I have run into a little hurdle in getting it to run  
> with postgres.
>
> I have been working through the docs, created my skeleton  
> application via catalyst.pl. As I want to experiment with an  
> existing Postgres setup I went on to generate the CDBI.pm and  
> Page.pm via the MyApp_create.pl helper script but with postgres  
> centric parameters.
>
> The helper runs but fails to finish building all parts and gives me  
> some errors/warnings and now I can not identify why Pg.pm is  
> tripping over. I might just eat my post if I missed something  
> blatantly obvious in configuring postgres stuff..
>
> Here is what I get:
>
>    ./btest_create.pl model CDBI CDBI 'DBI:Pg:dbname=test_db;  
> host=myhost' myuser mypass
>    created "/usr/local/btest/script/../lib/btest/M/CDBI.pm"
>    Use of uninitialized value in split at /usr/local/lib/perl5/ 
> site_perl/5.8.3/Class/DBI/Pg.pm line     81, <DATA> line 1.
>    basmembers has no primary key at            /usr/local/lib/perl5/ 
> site_perl/5.8.3/Class/DBI/Loader/Generic.pm line 196
>
> Any pointers will be much appreciated!!

Seems your table has no primary key.
Maybe you should consult the Class::DBI docs.


--
sebastian




More information about the Catalyst mailing list