cgi.pm install problem on windows 2000
cgi.pm install problem on windows 2000
am 02.03.2006 22:51:27 von salmonsm
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
Re: cgi.pm install problem on windows 2000
am 03.03.2006 00:07:20 von Sisyphus
"salmonsm" wrote in message
news:1141336287.134470.40590@t39g2000cwt.googlegroups.com...
> 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
Re: cgi.pm install problem on windows 2000
am 03.03.2006 21:28:03 von salmonsm
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.
Re: cgi.pm install problem on windows 2000
am 04.03.2006 07:17:42 von Sisyphus
"salmonsm" wrote in message
news:1141417682.988876.192990@e56g2000cwe.googlegroups.com.. .
> 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(){};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