[mapserver-users] Perl Mapscript issue (was: Tried to send message to the list..)

Steve Lime steve.lime@dnr.state.mn.us
Tue, 10 Sep 2002 13:46:50 -0500


Received: from mail.state.mn.us
	(state.mn.us [156.99.125.109])
	by co5.dnr.state.mn.us; Tue, 10 Sep 2002 08:12:17 -0500
Return-Path: <btski@rochester.rr.com>
Received: from mailout5-0.nyroc.rr.com by mail.state.mn.us with ESMTP for steve.lime@dnr.state.mn.us; Tue, 10 Sep 2002 08:12:10 -0500
Received: from btski (roc-66-66-88-31.rochester.rr.com [66.66.88.31])
	by mailout5-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with SMTP id g8ADC8W03006
	for <steve.lime@dnr.state.mn.us>; Tue, 10 Sep 2002 09:12:08 -0400 (EDT)
From: "Brian Tomaszewski" <btski@rochester.rr.com>
To: <steve.lime@dnr.state.mn.us>
Subject: Tried to send message to the list..
Date: Tue, 10 Sep 2002 09:19:21 -0400
Message-Id: <NFBBKAHIKLHICOFEJECIMEFJCEAA.btski@rochester.rr.com>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Importance: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi Steve

I tried to send a message to the MS list, but it didn't seem to go through..
However, nothing was sent back to me (wrong email).

Here is my message:

*********************************************************************

Hi List

I am trying to run a very basic mapscript cgi. Here is the code:

#!/usr/local/bin/perl

use mapscript;

my $map = new mapObj('/usr/local/apache/htdocs/liv_ms/liv.map') or
die('Unable to open mapfile');
my $image = $map->draw() or die('Unable to draw map');


When I  try to run, I get a 500 Internal server error in my browser and the
following is in the apache error log:

[Mon Sep  9 21:25:25 2002] [error] [client 192.168.1.1] Premature end of
script headers: /usr/local/apache/cgi-bin/ms.cgi
libpng warning: Incomplete compressed datastream in iCCP chunk

I have already checked:

-perl is in /usr/local/bin/
-there is a map file at the location

Any help or ideas would be appreciated

Thank you in advance

Brian Tomaszewski

*********************************************************************

What is the exact address to use for sending messages?

Thank you

Brian