Home > Archive > PERL Modules > March 2006 > cgi.pm install problem on windows 2000
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
cgi.pm install problem on windows 2000
|
|
| salmonsm 2006-03-02, 6:56 pm |
| 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
| |
| Sisyphus 2006-03-02, 6:56 pm |
|
"salmonsm" <salmonsm@missouri.edu> 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
| |
| salmonsm 2006-03-03, 6:56 pm |
| 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.
| |
| Sisyphus 2006-03-04, 3:56 am |
|
"salmonsm" <salmonsm@missouri.edu> 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(<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
|
|
|
|
|