Peter Jahn wrote:
Hi lyx user group,

I just installed lyx on a windows xp system (sp2). After the installation
(which included MikTeX, ghostscript, imagemagick) and after opening files
(i. e. from the docs) error messages appear telling me that layout-files are
missing (scrbook.layout). Is this a known bug? Was it my mistake?

I also tried the installation on windows vista. The same effect occurs here
too.

Thanks for any help.


If you start a new document and go to Document -> Settings... -> Document Class -> Document class, are *all* the classes listed as unavailable, or just some (including scrbook)? If they are all unavailable, LyX had a problem configuring itself. In that case, you can try the following:

1.  Make sure that the MiKTeX bin directory is on your system command path.

2. Tools -> Reconfigure, then restart LyX and see if things are better. If not ...

3. At a DOS prompt, run 'kpsewhich article.cls'. If MiKTeX doesn't find article.cls, your MiKTeX installation is somehow screwed up. If the OS doesn't find the kpsewhich command, either you didn't get the bin directory on the command path or your MiKTeX installation is severely messed up. Assuming MiKTeX is ok ...

4. Check Help -> About LyX to find where LyX is putting your "home directory". A tilde there usually means C:\Documents and Settings\<your id here>\ in XP (I forget where it ends up in Vista, where everything has been moved around), but just to be safe run 'set H' at a DOS prompt and concatenate HOMEDRIVE and HOMEPATH to find the replacement for the tilde. Open a DOS prompt in the parent of the home directory (e.g., C:\Documents and Settings\me\), delete the lyx15 directory entirely, then run '<path to LyX>\python\python.exe <path to LyX>\Resources\configure.py' and cross your fingers (toes too if you can). Watch the output and see if the script indicates that (a) it found a working latex.exe and (b) it found at least some document classes. If that works, try starting LyX again.

If most of the classes are there but scrbook is not, you just need to use the MiKTeX package manager to install the komascript classes.

/Paul

Reply via email to