Bradburn, Edward schrieb:
I installed using the "network bundle" at first, but constantly got a
problem with Lyx refusing to start: the now quite famous "textclasses not
found" problem.
More precisely, the programs refuses to start and prints this as the error:
LyXTextClassList::Read: no textclasses found!
This was obviously something to do with the Tex installation: although I
installed MikTex as part of the bundle, Lyx was somehow not finding it. As
it started, it tried to download missing textclasses but then bombed out
with an error.
I investigated o lot why this doesn't occur with my LyX installer:
http://wiki.lyx.org/Windows/LyXWinInstaller
I found now out why but don't know exactly why this happens:
When MiKTeX is installed together with LyX it refreshes some environment variables. Unfortunately
these changes need some time until they are recognized by the Windows system: You either have to
read the changed variables to get them refreshed or have to relogin to Windows.
Without beeing aware of this my installer calls LyX's configure script while the installer is
running - this run mostly fails for the explained reason but reads out the environment variables so
they are then refreshed (that's the run after my installer informs you that the following
configuration may need some time). When LyX is first started the configure script runs again and
this time it finds MiKTeX and so you don't get the error and LyX is successfully configured.
This one was very tricky to find it out, I needed 3 months and lots and lots of installation tests
to have the right idea :-(.
(Note: some other posters have suggested running the "configure.py" script
located in the Lyx directory, under the subdirectory "Resources". This did
NOT work for me: the configure script tried to load the (what it thought
were) missing Tex classes and crashed whilst doing so with the above
message.)
This is known MiKTeX bug we are working on. Workaround: Turn on an internet connection and then
reconfigure LyX.
regards Uwe