[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnatsweb problem installing on RedHat 6.2
From: |
Jan Pompe |
Subject: |
Re: gnatsweb problem installing on RedHat 6.2 |
Date: |
Fri, 16 Mar 2001 11:02:40 +1100 |
Terje Trane wrote:
>
> I have installet gnats 3.113 and I think I got it to work as it should, but
> now I try gnatsweb 2.6 on a RedHat 6.2 system.
>
> After updating the CGI.pm and installing MIME::Base64 and realizing that I
> had to make a /etc/gnats-db.conf even though I haven't installed multiple
> databases the 'make test' succeded and I could run install.
>
> Now I try http://<server>/cgi-bin/gnatsweb.pl and get a page telling me:
>
> Software error:
> Function CGI::Object::cgi_error does not exist at
> /home/httpd/cgi-bin/gnatsweb.pl line 3059
> For help, please send mail to the webmaster (root@localhost), giving this
> error message and the time and date of the error.
>
> And in the error log for Apache I get:
> [Thu Mar 15 16:10:44 2001] gnatsweb.pl: Name "main::global_no_cookies" used
> only
> once: possible typo at /home/httpd/cgi-bin/gnatsweb.pl line 2996.
> [Thu Mar 15 16:10:44 2001] gnatsweb.pl: Function CGI::Object::cgi_error does
> not
> exist at /home/httpd/cgi-bin/gnatsweb.pl line 3059
>
> Being quite unfamiliar to Perl I need some help understanding the message.
>
> For your convenience, here is a part of the code:
>
> 3045 sub main
> 3046 {
> 3047 # Load gnatsweb-site.pl if present. Die if there are errors;
> 3048 # otherwise the person who wrote gnatsweb-site.pl will never know
> it.
> 3049 do './gnatsweb-site.pl' if (-e './gnatsweb-site.pl');
> 3050 die $@ if $@;
> 3051
> 3052 # Make sure nobody tries to swamp our server with a huge file
> attachment.
> 3053 # Has to happen before 'new CGI'.
> 3054 $CGI::POST_MAX = $site_post_max if defined($site_post_max);
> 3055
> 3056 # Create the query object. Check to see if there was an error,
> which
> 3057 # happens if the post exceeds POST_MAX.
> 3058 $q = new CGI;
> 3059 if ($q->cgi_error())
> 3060 {
> 3061 print $q->header(-status=>$q->cgi_error());
> 3062 $q->start_html('Error');
> 3063 page_heading('Initialization failed', 'Error');
> 3064 print $q->h3('Request not processed: ', $q->cgi_error());
> 3065 exit();
> 3066 }
> 3067
> 3068 $sn = $q->script_name;
> 3069 my $cmd = $q->param('cmd') || ''; # avoid perl -w warning
> 3070
>
> (POST_MAX and also site_post_max exist two places in the code, all are in
> the extract above).
>
> Any ideas? How do I go on debugging? What info do you need to help me?
>
> I don't need a gnatsweb-site.pl if gnatsweb and gnatsd runs on the same
> host, right?
> install says:
> 3. If your gnats server is on the same host as your web server,
> skip this step. If not, create 'gnatsweb-site.pl', the site
> configuration file. Read gnatsweb.pl, and follow the directions.
> Basic configuration requires only that you specify the host +
> port number of your gnats server.
>
> Anyway, I made one and still the same error.
>
> The 'make test' said
> CGI version 2.56 required--this is only version 2.46
> so I looked for a newer and found a version 3.01 at
> http://stein.cshl.org/WWW/software/CGI/cgi_docs.html
> I downloaded CGI.pm-3.01.tar.gz unpacked it and ran "perl Makefile.PL"
> Then 'make test' ran (only complaining about MIME::Base64 that I installed
> using the suggestion in the "install"-file in gnuweb-2.6.tar.gz.)
>
> Was this the wrong file?
Later version of CGI.pm have, as I recall some messages regarding it,
broken gatsweb.
the error message is telling us the object '$q' has not been created or
that the method
CGI::cgi_error does not exist within CGI.pm. Check with
$ perldoc CGI
to see if this has changed. However the I suspect the obje has not been
created because
there is a line
use CGI 2.56 qw/:standard :netscape/;
putting in a line near the top will perhaps provide more info.
use CGI::Carp qw(fatalsToBrowser);
>
> _______________________________________________
> Bug-gnats mailing list
> Bug-gnats@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-gnats