"Paul A. Rubin" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> I posted a message earlier about problems getting the native Win XP
> port to configure.  Now something (no idea what) has broken my copy of
> the Cygwin port.  If I run the Cygwin port and do Edit | Reconfigure
> (or run /usr/local/share/lyx/configure from my home directory), I get
> a LaTeXConfig.lyx file with ??? for the date and for all the found/not
> found indicators.
> 
> Does anyone know what might cause this?  Note that the Cygwin port was
> working fine until I started poking around the native port, trying to 
> figure out why it wouldn't reconfigure.  I didn't change anything on
> the Cygwin side, other than to rerun the configuration script.
> 

Ok, solved this one myself.  I'll post the solution here for posterity.  
The configure script searches the command path first for executables named   
"latex", then for executables named "latex2e", and if it finds one tests it 
by running it against a temporary file it creates (chklatex.ltx).  The 
problem is that (a) Cygwin apparently puts /usr/bin ahead of anything on 
the Windows PATH when constructing the PATH environment variable used by 
its shells, (b) Cygwin's /bin directory (to which /usr/bin apparently maps) 
contains a version of latex that apparently fails the usability test and 
(c) the script stops looking for executables named "latex" the first time 
it finds one (even if that one is unusable).  The solution was to get rid 
of the latex.exe file in /usr/bin.  IIRC, one can opt not to install 
Cygwin's LaTeX module, which clearly I should have done.

-- Paul

Reply via email to