www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/16/12:52:37

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: Thu, 16 Dec 2004 12:51:51 -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: <20041216101048.20227.qmail@web90103.mail.scd.yahoo.com>
Message-ID: <Pine.GSO.4.61.0412161228320.2298@slinky.cs.nyu.edu>
References: <20041216101048 DOT 20227 DOT qmail AT web90103 DOT mail DOT scd DOT yahoo DOT com>
MIME-Version: 1.0

On Thu, 16 Dec 2004, bill BW wrote:

> For the last 6 hrs I have been fighting with
> latex2html and cygwin to get latex2html to
> work, but I give up.
>
> Has anyone got latex2html to work on cygwin?
> [snip install with no problems]
>
> 5. But now everytime I try the late2html command
> on a .tex file, I get the error
>
> $ 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;".

> Ok, so line 2 is commented out. so what is wrong?

What's that got to do with anything?  It's a comment.

> I changed the first line to
> #!/usr/local/perl
>
> but it did not make any difference.

Nor should it.  The l2hconf.pm is not executed via the shell, but via the
"use()" function, which ignores the shebang line altogether.  FWIW, I
think the invalid shebang is there exactly to prevent running that file
via the shell (unless your system has perl in the root directory).

> 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.

This means it supports 64-bit functions, that's all.

> I read on the net that latex2html might not
> work when using cygwin supplied perl, and I need
> to install windows perl, such as active Perl,
> and have that perl stub in cygwin tools, that
> calls windows perl.exe instead. may be I should try
> that?

Try it first with the Cygwin version.  Fixing l2hconf.pm should help.
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