[Maypole] problems w/ Maypole.cgi

Michael Freeman mfreeman451@gmail.com
Mon, 26 Jul 2004 23:08:38 -0500


Here are the errors I get with Maypole in CGI mode..

[Mon Jul 26 22:31:18 2004] [error] [client 68.117.35.204] Premature
end of script headers: nursery.cgi
[Mon Jul 26 22:31:18 2004] [error] [client 68.117.35.204] file error -
cgi-binnursery.cgi: not found at
/usr/local/share/perl/5.6.1/Maypole/View/Base.pm line 68

root@frylock:/www/carvernursery/cgi-bin# cat nursery.cgi
#!/usr/bin/perl

use strict;
use vars qw/$path/;  BEGIN { $path = "/www/carvernursery/cgi-bin" };

use lib $path;

use Nursery;

Nursery->run();


### and the Nursery.pm

root@frylock:/www/carvernursery/cgi-bin# cat Nursery.pm
package Nursery;

use base 'CGI::Maypole';
use Class::DBI::Loader::Relationship;

Nursery->setup("dbi:mysql:carvernursery", "maypole", "foobar");
Nursery->config->{uri_base} = "http://www.carvernursery.com/cgi-bin/";
Nursery->config->{rows_per_page} = 10;
Nursery->config->{loader}->relationship($_) for
        ("a category has products", "a subcategory has products",
         "a category has subcategories");

1;


Heres what happens when I run it manually:

root@frylock:/www/carvernursery/cgi-bin# perl nursery.cgi
file error - nursery.cgi: not found at
/usr/local/share/perl/5.6.1/Maypole/View/Base.pm line 68.
root@frylock:/www/carvernursery/cgi-bin#

Any Ideas?