Hi-
I have another clue in my battle to get l2h98.1 running on
RedHat Linux:
If I comment out the offending lines, I get the following
message at the end of the l2h run:
Doing section links .....
*********** WARNINGS ***********
Couldn't remove ./TMP/ : Directory not empty
Done.
The `offending lines' are:
# while (($env,$style) = each %env_style) {
...
# print STYLESHEET "\#$id\t\t{ $styleID{$id} }\n"
if ($styleID{$id});
# }
These are just lines that print stuff to the .css file, so
removing them (though it might make the .css file to be
nonsense) shouldn't affect the ./TMP/ directory, should it?
See below for an explanation of why I was commenting out
those lines.
*Any* help would be appreciated, even if it's, "I don't
know, but I would look at..."
Thanks,
Andy
-------------------------------------------------------------------
Andy Felt | [EMAIL PROTECTED] |
Dept. of Pure and Applied Mathematics| |
Washington State University | http://www.wsu.edu/~felta/ |
-------------------------------------------------------------------
The early bird gets the worm, but the second mouse gets the cheese.
-Stephen Wright
---------- Forwarded message ----------
Date: Mon, 8 Feb 1999 13:55:45 -0800 (PST)
From: Andy Felt <[EMAIL PROTECTED]>
To: Ross Moore <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: latex2html: gdbm fatal: read error
Thank you for the fast reply. I've tried your suggestion
with the following results:
On Sat, 6 Feb 1999, Ross Moore wrote:
>>
>> Hi Folks-
>> Using l2h 98.1p1, gs5.50 under RedHat Linux 5.2, I ran into
>> a problem with gdbm. I found a note about the same problem
>> in the archives from Kish Shen, but there was apparently no
>> reply. Kish does not recall the solution. Any help would
>> be appreciated. Kish was using 98.1p1 as well under RedHat.
>>
>> Thanks much,
>> Andy
>>
>> Below is a paste from Kish's note:
>>
>> >Doing section links ......
>> >Copying navigation icons ...gdbm fatal: read error.
>> >
>> >
>> >---
>> >Tracing the problem, I find that it occurs when the system
>> >is creatingf
>> >the .css file, and I traced the problem to the following
>> >line in the
>> >latex2html code in the style_sheet subroutine:
>> >
>> > while (($env,$style) = each %env_style) {
>> >
>> >I assume this is because the file %env_style does not exist
>> >at the point
>> >when this line is executed. Is this because I have not set
>> >things up
>> >correctly? Can anyone tell me what I am doing wrong?
>> >
>
>I don't recall this particular problem.
>However it may be just an instance of not using the best DBM module
>for your local Perl installation.
>
>Early in the latex2html script there is a code line:
> use AnyDBM;
>
>(or something like this.)
>This is meant to allow Perl to decide for itself which Database code to use.
>You can force an alternative choice by replacing this with:
>
>
> use GDBM;
> use SDBM;
> use "whatever other DBM you have available" ;-)
>
>
>I suspect that such an edit will solve your problem.
>
>Alternatively, the latex2html script may be asking for a specific DBM,
>which isn't implemented properly for you. In which case try use AnyDBM instead.
>
>
>Hope this helps,
>
> Ross Moore
>
A search for `anyd' or even `dbm;' in the l2h script finds
no matches. However, there is a line:
# Uncomment the following statement if your Linux system
requires it.
# use GDBM_File;
I uncommented the line, and I get the output:
Doing section links .....read error at
/usr2/texmf/l2h/latex2html/latex2html line 5984.
This happens to be the line that Kish mentioned in his note.
It is the first `while' line below. I appologize for the
fact that I am a Perl idiot (or maybe just an idiot). Any
assistance you could give would be greatly appreciated.
Thanks -- Andy
>From l2h, including the offending line:
/* document-specific styles come next */
";
}
while (($env,$style) = each %env_style) {
if ($env =~ /inline/) {
print STYLESHEET "SPAN.$env\t\t{ $style
}\n";
} elsif ($env =~
/^(preform|\w*[Vv]erbatim(star)?)$/) {
print STYLESHEET "PRE.$env\t\t{ $style }\n";
} else {
print STYLESHEET "DIV.$env\t\t{ $style }\n";
}
}
while (($env,$style) = each %txt_style) {
print STYLESHEET "SPAN.$env\t\t{ $style }\n";
}
foreach $id (sort(keys %styleID)) {
print STYLESHEET "\#$id\t\t{ $styleID{$id} }\n"
if ($styleID{$id});
}
close(STYLESHEET);
#AXR: don't overwrite existing .css
} unless -f $EXTERNAL_STYLESHEET; # "$FILE.css";
}
-------------------------------------------------------------------
Andy Felt | [EMAIL PROTECTED] |
Dept. of Pure and Applied Mathematics| |
Washington State University | http://www.wsu.edu/~felta/ |
-------------------------------------------------------------------
The early bird gets the worm, but the second mouse gets the cheese.
-Stephen Wright