Kurt SBECK wrote:
Hello all,
I'm new to Lyx - just trying to check it out.
I downloaded the "windows bundle" installation for version 1.5.2.
When running the install I came upon the curious set of messages:
1. MikTeX 2.6 said it installed ok
2. LyX installer said that MikTeX 2.6 did *not* install ok
Proceeding with the install, everything else ran ok.
Now, upon starting up LyX I get the message:
---------------------------
LyX 1.5.2-1
---------------------------
LyX has been closed because of an unexpected situation.
This is most likely caused by a flaw in the software.
[...]
TextClassList::Read: unable to find textclass file `'. Exiting.
Completed
[...]
LyX: reconfiguring user directory
'\\srvfs00\home$\ ... \WorkstationXP\Application Data\lyx15'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
The last bit here indicates the problem. You are apparently set up with
a roaming profile that puts your home directory on a remote server
(srvfs00). As the message says, LyX is not geared to deal with UNC
paths (\\srvfs00\...), and so it installed itself onto your C drive.
The message says it defaulted to your Windows directory, so you might
search under there and see if there is a LyX subdirectory (might be
.lyx). If so, you might want to delete it.
There was discussion of this on the list a while back -- it seems to
come up intermittently -- so you might search the list archives on
GMANE. I've forgotten a lot of the details. I assume that you
installed MikTeX and LyX to whatever PC you were on when you got this
message, rather than onto a server (?). If you are ok with installing
the LyX configuration files on the same PC, you might try the following:
1. Findy a comfortable place for your user files and create a directory
there. I'll assume here that it is C:\Kurt\LyX, but the actual path can
be anything. For what it's worth, on a stand-alone PC running Win XP or
Win 2K this would normally be C:\Documents and Settings\<your login
id>\Application Data\lyx15. (The path is slightly different under
Vista, I think, since M$ moved stuff around a bit.)
2. Open a command shell in C:\Kurt\LyX. Run <path to
LyX>\python\python.exe <path to LyX>\Resources\configure.py there. You
should see the same "checking for ..." output you got the first time,
and in particular you see confirmation that it finds MikTeX. (If it
does not find MikTeX, come back to the list; you have other problems as
well.) At the end of the run, you should have a few files and
subdirectories under C:\Kurt\LyX. In particular, you should a file
named textclass.lst, and it should have a length greater than zero
bytes. (If it has zero bytes, check back here, there's a problem with
MikTeX.)
3. Now create a shortcut to the LyX executable and edit the shortcut
(right-click it and select Properties). Append to the target line
-userdir C:\Kurt\LyX (suitably modified, and with quotes around the path
if it contains any spaces).
Hopefully the shortcut will now correctly start LyX.
HTH,
Paul