On Wed, Nov 15, 2006 at 09:21:39AM +0100, Jens Nellesen wrote:
> Hello Enrico,
> 
> I included the paths
> 
> C:\cygwin\bin AND C:\cygwin\usr\X11R6\bin
> 
> in the path prefix. Now it says "converting into loadable format" all 
> the time instead of "error during conversion ..." but nothing happens 
> and also lyx doesn't use the CPU.

Note that you may experience several problems using the native version
of LyX in a Cygwin environment. See, for example:
http://thread.gmane.org/gmane.editors.lyx.devel/67073/focus=67935

In this case, most probably the problem is that you have the cygwin
version of ImageMagick and the way convert.exe is called by the native
LyX confuses it.

> If I try to generate a dvi-file, Lyx crashes with the error
> 
> lyxc.exe has encountered a problem ...
> 
> LyX has been closed because of an unexpected situation. ...
> 
> lyx: Disabling LyX socket.
> Could not fork: Invalid argument.
> 
> 
> Please let me know if you want to me test something else.

Your example .fig file with only text was working for me with 1.4.3-3,
but after installing 1.4.3-5 I see that it crashes for me, too.
So this must be a bug introduced in the 1.4.3-5 native version.

However, if you have teTeX and want to use the native version of LyX,
my advice is to use the following two batch files:

---- latex.bat ----
@echo off
sh.exe -c 'latex %*'
exit
-------------------

---- pdflatex.bat ----
@echo off
sh.exe -c 'pdflatex %*'
exit
----------------------

You should put them in a directory listed ahead in "PATH prefix" such
that they are found before the corresponding binaries.

If you have the cygwin python, then you should also use the following:

---- python.bat ----
@echo off
sh.exe -c 'python %*'
exit
--------------------

And finally, if you have xdvi, the following script is your friend:

---- xdvi.bat ----
@echo off
set DISPLAY=localhost:0.0
sh.exe -c 'xdvi %*'
exit
------------------

What I don't understand is why you want the native version of LyX given
that you have the cygwin version ;-)

If you want it in order to avoid launching the X-server, then a better
solution would be downloading this archive:
ftp://ftp.lyx.org/pub/lyx/bin/1.4.3/lyx-1.4.3-cygwin.tar.gz
and using the executable lyx-qtwin.exe you can find in it. This is
a cygwin version of LyX but not using X11, so its appearance is
exactly as that of a native LyX. Note that you don't need installing
the LyX package contained there, but simply extract lyx-qtwin.exe
from lyx-1.4.3.tar.bz2 and put it alongside the official LyX/X11 using
the following commands:

$ tar jxvf lyx-1.4.3.tar.bz2 usr/local/bin/lyx-qtwin.exe
$ mv usr/local/bin/lyx-qtwin.exe /usr/bin

and you are done. You may want to install the other packages you find
in the above archive, though, namely aiksaurus, dvipost, and latex2rtf.

-- 
Enrico

Reply via email to