Click here to get back home

cgi.pm install problem on windows 2000

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
cgi.pm install problem on windows 2000 salmonsm 03-02-2006
Posted by salmonsm on March 2, 2006, 4:51 pm
Please log in for more thread options


Hello.

I'm running a Windows 2000 Server with IIS 5. i've got activestate perl
v.5.8.7 installed. I also have MySQL 5 installed and running as well.
I'd like to use Myadmin to administer my databases. I've installed
cgi.pm as needed by myadmin and I can't get install to work. Make seems
to go ok (I'm using nmake15), but make install dies with:

Array found where operator expected at C:/Perl/lib/Carp.pm line 424, at
end of line
        (Do you need to predeclare Carp::longmess?)
Array found where operator expected at C:/Perl/lib/Carp.pm line 425, at
end of line
        (Do you need to predeclare Carp::shortmess?)
Array found where operator expected at C:/Perl/lib/Carp.pm line 426, at
end of line
        (Do you need to predeclare Carp::shortmess?)
Array found where operator expected at C:/Perl/lib/Carp.pm line 427, at
end of line
        (Do you need to predeclare Carp::longmess?)
syntax error at C:/Perl/lib/Carp.pm line 424, near "Carp::longmess @_"
syntax error at C:/Perl/lib/Carp.pm line 425, near "Carp::shortmess @_"
syntax error at C:/Perl/lib/Carp.pm line 426, near "Carp::shortmess @_"
syntax error at C:/Perl/lib/Carp.pm line 427, near "Carp::longmess @_"
Compilation failed in require at C:/Perl/lib/warnings.pm line 134.
BEGIN failed--compilation aborted at C:/Perl/lib/warnings.pm line 134.
Compilation failed in require at
C:/Perl/site/lib/ActivePerl/DocTools.pm line 4.
BEGIN failed--compilation aborted at
C:/Perl/site/lib/ActivePerl/DocTools.pm line 4.
Compilation failed in require.
BEGIN failed--compilation aborted.

Is there a way to load CGI.pm on Windows without running the installer?
Or if not, how can I deal with this error?

Thanks.

Michael


Posted by Sisyphus on March 2, 2006, 6:07 pm
Please log in for more thread options



> Hello.
>
> I'm running a Windows 2000 Server with IIS 5. i've got activestate perl
> v.5.8.7 installed.

ActiveState perl already has the CGI module. You shouldn't ned to do
anything other than 'use CGI;' in your scripts.

If you intend to use nmake, you would be better off getting a more recent
version.
It should be available via Microsoft Visual Studio .NET 2003 or the
Microsoft .NET Framework SDK . Both are free downloads - the latter can be
obtained from:
http://msdn.microsoft.com/netframework

If that doesn't contain nmake, try googling for the former.

Cheers,
Rob




Posted by salmonsm on March 3, 2006, 3:28 pm
Please log in for more thread options


Rob,

Thanks for your reply. I tried just letting things be and loaded up
myadmin.cgi in a browser. Interstingly, I got pretty much the same
error message I saw when trying to load CGI.pm:

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:


Array found where operator expected at c:/Perl/lib/Carp.pm line 424, at
end of line
        (Do you need to predeclare Carp::longmess?)
Array found where operator expected at c:/Perl/lib/Carp.pm line 425, at
end of line
        (Do you need to predeclare Carp::shortmess?)
Array found where operator expected at c:/Perl/lib/Carp.pm line 426, at
end of line
        (Do you need to predeclare Carp::shortmess?)
Array found where operator expected at c:/Perl/lib/Carp.pm line 427, at
end of line
        (Do you need to predeclare Carp::longmess?)
syntax error at c:/Perl/lib/Carp.pm line 424, near "Carp::longmess @_"
syntax error at c:/Perl/lib/Carp.pm line 425, near "Carp::shortmess @_"
syntax error at c:/Perl/lib/Carp.pm line 426, near "Carp::shortmess @_"
syntax error at c:/Perl/lib/Carp.pm line 427, near "Carp::longmess @_"

The reason I felt the need to load CGI.pm to begin with is myadmin
reported it as missing when I first tried it out. I guess I will try a
new install of activestate and try again.


Posted by Sisyphus on March 4, 2006, 1:17 am
Please log in for more thread options



> Rob,
>
> Thanks for your reply. I tried just letting things be and loaded up
> myadmin.cgi in a browser. Interstingly, I got pretty much the same
> error message I saw when trying to load CGI.pm:

There's no error about being unable to find CGI.pm - which would indicate
that (assuming an attempt has been made to load Carp.pm) it was found.

>
> CGI Error
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are:
>
>
> Array found where operator expected at c:/Perl/lib/Carp.pm line 424, at
> end of line
> (Do you need to predeclare Carp::longmess?)
> Array found where operator expected at c:/Perl/lib/Carp.pm line 425, at
> end of line
> (Do you need to predeclare Carp::shortmess?)
> Array found where operator expected at c:/Perl/lib/Carp.pm line 426, at
> end of line
> (Do you need to predeclare Carp::shortmess?)
> Array found where operator expected at c:/Perl/lib/Carp.pm line 427, at
> end of line
> (Do you need to predeclare Carp::longmess?)
> syntax error at c:/Perl/lib/Carp.pm line 424, near "Carp::longmess @_"
> syntax error at c:/Perl/lib/Carp.pm line 425, near "Carp::shortmess @_"
> syntax error at c:/Perl/lib/Carp.pm line 426, near "Carp::shortmess @_"
> syntax error at c:/Perl/lib/Carp.pm line 427, near "Carp::longmess @_"
>

Those errors make no sense - Carp.pm doesn't contain 424 lines on my AS perl
5.8.7 (build 815):

E:\>perl -e "open RD, 'C:/perl/lib/Carp.pm' or die $!;while(<RD>){};print
$.;close RD or die $!"

For me that prints 274, indicating that Carp.pm contains only 274 lines.

If the re-install doesn't fix the problem, you might want to start with a
smaller and simpler test script.

Cheers,
Rob



Similar ThreadsPosted
how to install/use MP3::Tag in Windows environment? February 6, 2007, 6:57 pm
How can I install Image::Magick module on windows system? December 10, 2005, 3:36 pm
Net::SSH::Perl under Win 2000 May 17, 2006, 1:35 pm
Microsoft SQL Server 2000 perl module November 11, 2004, 2:12 am
Problem with Storable on Windows July 4, 2005, 9:20 pm
XML-Parser-2.34 install problem on Solaris December 7, 2004, 5:18 pm
XML::Parser::Expat install problem April 24, 2005, 1:44 am
Module install problem - AppConfig October 19, 2005, 2:04 pm
libwww-perl-5.805 install problem on OS X 10.3 March 13, 2006, 10:12 pm
SSLeay & OpenSSL problem with install of IO::Socket::SSL June 24, 2005, 9:39 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap