delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/17/11:56:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 17 Dec 2004 11:56:09 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: bill BW <bill_bw_1000 AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Anyone got latex2html to work on cygwin?? Fatal (use l2hconf): l2hconf.pm
In-Reply-To: <20041217011039.41546.qmail@web90110.mail.scd.yahoo.com>
Message-ID: <Pine.GSO.4.61.0412171137510.2298@slinky.cs.nyu.edu>
References: <20041217011039 DOT 41546 DOT qmail AT web90110 DOT mail DOT scd DOT yahoo DOT com>
MIME-Version: 1.0

On Thu, 16 Dec 2004, bill BW wrote:

> --- Igor Pechtchanski <pechtcha AT XX DOT XXX DOT XXX> wrote:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > On Thu, 16 Dec 2004, bill BW wrote:
> >
> > > $ latex2html foo.tex
> > > Fatal (use l2hconf): l2hconf.pm did not return a true value at (eval 7) line 2.
> > > BEGIN failed--compilation aborted at (eval 7) line 2.
> > >
> > > I look at the file l2hconf.pm, and I
> > > see this as first 3 lines:
> > >
> > > #!/perl
> > > # LaTeX2HTML l2hconf.pm
> > > # $Id: l2hconf.pin,v 1.17 2002/06/15 22:46:36 RRM Exp $
> >
> > You should look at the whole file, to see what the
> > last returned value is.
> > The last line of the file is usually "1;".
>
> Yes it is. I did not touch the file l2hconf.m
>
> > > more information:
> > >
> > > $ which perl
> > > /usr/bin/perl
> > >
> > > $ perl --version
> > > This is perl, v5.8.5 built for
> > > cygwin-thread-multi-64int
> > >
> > > Why does it say '64int' there? my machine is
> > > 32 bit P4.
> >
> > Try it first with the Cygwin version.  Fixing
> > l2hconf.pm should help.
>
> but what is wrong with l2hconf.pm?
>
> This is what I tried now:
> I looked at latex2html to see where it calls
> l2hconf.pm, it is at lines 120:130
>
> ------ from latex2html ------
>
> # Local configuration, read at runtime
> # Read the $CONFIG_FILE  (usually l2hconf.pm )
> if($ENV{'L2HCONFIG'}) {
>   require $ENV{'L2HCONFIG'} ||
>     die "Fatal (require $ENV{'L2HCONFIG'}): $!";
> } else {
>   eval 'use l2hconf';
>   if($@) {
>     die "Fatal (use l2hconf): $@\n";
>   }
> }
>
> --------- end latex2html cut ---------
>
> so to test this, from cygwin shell I typed just the command that calls
> l2hconf as follows:
>
> ---- start test -----
>
> $ perl
> eval 'use l2hconf';
> if($@) {
>   die "Fatal (use l2hconf): $@\n";
> }
>
> Fatal (use l2hconf): Undefined subroutine &main::ignore_commands called
> at l2hconf.pm line 1216.
>
> Compilation failed in require at (eval 1) line 2.
> BEGIN failed--compilation aborted at (eval 1) line 2.
>
> ----- end test --------
>
> Ok, so the real problem is really at line 1216 in l2hconf.pm. so I went
> to line 1216 there, and this is the content starting from line 1216:
>
> ---- line 1216 to line 1217
>
> &::ignore_commands( <<_IGNORED_CMDS_);
> htmlrule # [] # \$_ = join('',"<BR><HR>",\$_)
>
> ----- end lines 1216 to line 1217 ----
>
> I can include the whole file if needed, but this is out of the box, did
> not touch it, and here is the text of the this file on this URL, someone
> posted it for a problem:
>
> http://www.mail-archive.com/latex2html AT tug DOT org/msg00372.html
>
> so, any ideas what to do now? I am very bad at perl, having writting may
> be 10 lines in perl all of my life. and this thing should work as is,
> unless something wrong with perl build on cygwin?
>
> any more information I can provide on this?

AFAICS, ignore_commands is defined in the latex2html script itself.
There's probably another reason for this problem.

Is the file l2hconf.pm readable?  Is it in the default install directory
(/usr/share/latex2html)?  If not, is the directory that contains it in
perl's include path?

Try copying l2hconf.pm to the current directory, and putting print
statements in it to track the progress of its loading (you'll need to set
L2HCONFIG to "./l2hconf.pm").  Don't forget to set $|=0 in the beginning
to turn off buffering.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019