Stephen Harris <[EMAIL PROTECTED]> writes:

> I tested Chuck's method. He is not getting a DVI viewer because the
> latex.exe is found during "sh configure" to be "not useable". So by
> "native LyX version", you don't mean a binary, but that LyX can be
> compiled under Cygwin to use Qt3 and Cygwin LyX helpers?
> The WinLyX binary install bombs for finding xpdf also.

This is ridiculous ... here the configure script is trying to ascertain
if the latex.exe is version 2e, which obviously the cygwin version is,
but it fails to recognize it. This means that the check for latex2e in
configure must be changed accordingly.

I have disinstalled the cygwin tetex packages as I use MikTeX and now
I don't have a fast internet connection to try it personally. Perhaps
you can help me in solving this problem? Please, put the following 5 lines
in a file named test.ltx and then run the cygwin latex.exe on it
(/bin/latex test.ltx):

\nonstopmode\makeatletter
\ifx\undefined\documentclass\else
  \message{ThisIsLaTeX2e}
\fi
\@@end

After you have done it, please paste the output in your reply, such that
I can have a look at it.

Another point which may be important is that the configure script has
DOS style line endings and this can be the reason for the failed test.
So, proceed in this way:
1) Use notepad (not a cygwin text editor) to create test.ltx
2) perform the check from a cygwin shell: "/bin/latex test.ltx"
3) convert test.ltx to unix line endings with "dos2unix text.ltx"
4) redo the the check on the converted file: "/bin/latex test.ltx"

If the line endings style is the problem, the fix is almost trivial.

[...]
> Well I noticed that latex.exe was rather small and there was a symlink
> to pdfetex.exe. So I tried to tried deleting latex.exe and then copying
> pdfetex.exe to latex.exe but the binary LyX still found latex.exe "not
> useable". I noticed you put the new Cygwin LyX140 up for ftp download.

No, that could not be the problem as configure was being executed by
the cygwin sh and in this context symlinks are understood. When you
run "sh configure" symlinks are ok, but when you run the native LyX, it
will not recognize latex.exe if it is a symlink (so, your move is correct).

Yes, I have uploaded a cygwin package for LyX 1.4.0 to
ftp.devel.lyx.org/pub/incoming but it is not downloadable from there,
so someone must move it to a suitable place.

-- 
Enrico


Reply via email to