I need a little help with a CGI script ...
Posted by: Jherusalem
Posted on: 2002-11-04 14:05:00
Okay, here's the 411 -- I downloaded this script "as is" which means sans readme files. Thinking hey, I know a little something something about CGI, I thought I'd give it a whirl. Only I get that dreaded 500 Internal Server Error page when I try to execute it from my browser.
Looking at my error logs, the root of the problem (no pun intended) seems to be that the script is looking for files that I'm either linking to wrong or which simply don't exist. This is possible -- remember, it was a WYSIWYG script with no demo and no support. The script draws to a stop at this line:
use strict;
use Tk;
use Pod::Text;
use Tk::Pod;
Now, I'm not familiar enough with CGI to know what this is referring to.
Right after it, though, are these variables:
my $MAN_PATH = "/users/dovl/local/man";
my $MAN_PAGE = "/mandovl/diamondMine.dovl";
my $MAN_VIEWER = "/usr/dt/bin/dthelpview";
my $LIB_PATH = "/usr/bin/perl/lib";
To be honest, I don't think any of them are right. Is there anyone out there who might be kind enough to point me in the right direction? The name of the script is diamondmine. The original file can be found here:
http://www.geocities.com/levengli/diamondMine.pl
My non-working version is here:
http://jherusalem.com/diamondmine.pl
Much thanks to any who read this, even if you can't help. At least you tried!
'Salem
"I thought I'd live forever, but now I'm not so sure."