Olumide wrote:
Hi -

I've downloaded and installed Lyx 1.4.3-5 for Windows XP, and I've tried running
it for the first time, but I'm getting the lengthy error message:

LyX: reconfiguring user directory
'\\drive\videohead\Profile\Application Data\lyx1.4.x'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
checking for DVI to DTL converter...
+checking for "dv2dt"...   yes
checking for DTL to DVI converter...
[... snip ...]
+checking for "nroff"...   no
checking for ChkTeX...
+checking for "chktex"...   no
checking for a spellchecker...
+checking for "ispell"...   no
checking for a spool command...
+checking for "lp"...   no
+checking for "lpr"...   yes
checking LaTeX configuration...           auto
+Inspecting your LaTeX configuration.
+checking for LaTeX version... 2005/12/01
+checking for available hyphenation patterns... english, dumylang, nohyphenatio
[... snip ...]
+checking for package varioref [varioref]... yes
+checking for package url [url]... yes
+checking for package graphicx [graphicx]... yes
+checking for graphics driver... default
+checking for package psnfss [times.sty]... yes
+Inspection done.
+Read the file doc/LaTeXConfig.lyx for more information.
creating packages.lst
creating doc/LaTeXConfig.lyx
LyX: Done!
LyXTextClassList::Read: unable to find textclass file  `'. Exiting.

How can I fix this? Thanks,

- Olumide




Someone else reported the same problem recently. You apparently have your user "home" directory on a remote server. LyX by default creates your configuration information in a folder under your home, and it does not support UNC paths (\\drive in your case).

I can think of two possible fixes. The first one I'm pretty sure works, but it requires putting your home directory on your C: drive rather than on the server. If you work in "terminal" mode (you jump on different machines and connect to the server to get your files), this will not work; but if you have your own dedicated machine (home, office, laptop) that hooks up to the server, it should be ok. Pick a directory on C: that you want to use for LyX configuration and files. The directory does not need to exist (yet). Let's call it C:\LyX\home for now. In the LyX bin directory, find the file lyx.bat and edit it. Change the line

start "LyX" "C:\Program Files\LyX143\bin\lyx.exe" %*

to

start "LyX" "C:\Program Files\LyX143\bin\lyx.exe" -userdir C:\LyX\home %*

and save it. (If you pick a home directory that has spaces in the path, you will need to enclose C:\whatever in quotes.)

Now try starting LyX. The first time you start, if the directory does not yet exist, it will ask you what to do; click the option to create the directory. After that it should configure and run. In the future, it will just start without having to reconfigure.

The less certain option is to put your work directory on the server. You will need to do this if you do not have a dedicated PC (meaning in particular that LyX itself is installed on the server). You may want this anyway if you work from different machines and want your documents in a central location. To do this, pick an unused drive letter (let's say Q). Edit lyx.bat, but this time put

-userdir "Q:\Profile\Application Data\lyx1.4.x"

in the start line.  Also, before the start line, add the following:

subst Q: \\drive\videohead

I *think* this should work, but I can't test it because I don't run from a server.

HTH,
Paul

Reply via email to