Re: Windows installation problem
Ian Riley wrote: Installing LyX from lyx-143-5.exe on two different Windows machines (XP and Win2000), both resulted in an error, "LyXTextClassList::Read: no textclasses found!", each time it is run. Reinstallation did not resolve the problem. LyX installs and runs flawlessly under Dapper Ubuntu at home. Does anyway know of a solution? Thanks, Ian First question: are these machines self-contained, or do users have their home directories on a remote server? (There have been two reports of this problem recently from people using remote servers.) Assuming that your home directories are stored on the machines, you might try opening a DOS shell and changing to the Resources folder under the LyX installation directory. There is a script 'configure.py' there. Try running it. (If you don't have the full Python installed and associated with .py file types, you will need to run 'python configure.py' or possibly '\python configure.py', where is the path to the copy of Python installed by LyX. In the event that doesn't work (it usually does), you should at least get some informative error messages in the DOS window. /Paul
Re: Windows installation problem
Hi! A previous post in the list may be of help: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg51982.html http://www.mail-archive.com/lyx-users@lists.lyx.org/msg51958.html Nicolás Ian Riley wrote: Installing LyX from lyx-143-5.exe on two different Windows machines (XP and Win2000), both resulted in an error, "LyXTextClassList::Read: no textclasses found!", each time it is run. Reinstallation did not resolve the problem. LyX installs and runs flawlessly under Dapper Ubuntu at home. Does anyway know of a solution? Thanks, Ian
Re: Windows installation problem (and fix)
> "Serge" == Serge Barbosa Da Torre <[EMAIL PROTECTED]> writes: Serge> Yes. Note that this message is confusing: Serge> - did it search separately c:/appli/lyx14/bin, and Serge> c:/appli/lyx14/resources (in which case it should have found Serge> the correct dir), and did the error printing by concatenating Serge> the 2 dirs? No Serge> - or did it search a single dir of the form Serge> c:/appli/lyx14/bin/c:/appli/lyx14/resources/ ?? Note that if i Serge> pass a bogus dir to the -sysdir option, it reports that dir on Serge> a new line. There should be one directory per line. JMarc
Re: Windows installation problem (and fix)
Serge> The fix is obviously to modify the launch script lyx.bat to add Serge> the -sysdir option to the executable as following: This should not be necessary... Did you do something special, besides installing in a non-standard directory? Nothing special. Actually I installed it a first time with the default dir (c:/Program Files/Lyx14) but it was failing. Seeing in the list that some people had problem with the space in the pathname, i reinstalled it in c:/appli. Same problem. The problem is Unable to determine the system directory having searched C:/appli/LyX14/bin/C:/appli/LyX14/Resources/ LyX should have searched in C:/appli/LyX14/Resources/ instead. Yes. Note that this message is confusing: - did it search separately c:/appli/lyx14/bin, and c:/appli/lyx14/resources (in which case it should have found the correct dir), and did the error printing by concatenating the 2 dirs? - or did it search a single dir of the form c:/appli/lyx14/bin/c:/appli/lyx14/resources/ ?? Note that if i pass a bogus dir to the -sysdir option, it reports that dir on a new line.
Re: Windows installation problem (and fix)
> "Serge" == Serge Barbosa Da Torre <[EMAIL PROTECTED]> writes: Serge> The fix is obviously to modify the launch script lyx.bat to add Serge> the -sysdir option to the executable as following: This should not be necessary... Did you do something special, besides installing in a non-standard directory? The problem is Unable to determine the system directory having searched C:/appli/LyX14/bin/C:/appli/LyX14/Resources/ LyX should have searched in C:/appli/LyX14/Resources/ instead. JMarc
RE: Windows Installation Problem
This is all very strange. I copied the file again, and it now seems to be working. Sorry for the false alarm, and thanks for the advice. John - - - - - - - - - - Dr. John W. Sheppard - Fellow and Assistant Research Professor - ARINC and Johns Hopkins University - [EMAIL PROTECTED] and [EMAIL PROTECTED] -Original Message- From: Stephen Harris [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 5:23 PM To: John W. Sheppard, PhD; lyx-users@lists.lyx.org Subject: Re: Windows Installation Problem - Original Message - From: "John W. Sheppard, PhD" <[EMAIL PROTECTED]> To: Sent: Friday, December 23, 2005 12:41 PM Subject: RE: Windows Installation Problem > To answer your questions, yes they were latex packages, and yes I am using > MiKTeX. > > I had only looked at the textclass.lst file in the C:\Program > Files\LyX\Resources\lyx directory. You are correct that the one that I did > not check (in C:\Documents and > Settings\your_id_here\Application Data\lyx) is 0-length. I copied the > global > one to the local one but that didn't work. > > When I try running sh configure, it doesn't run because paths don't appear > to be set up right. I decided not to try to fix that because I wasn't sure > it would get me anywhere. > > John > That means you probably dont have Msys in your Windows PATH Suppose that you have Msys etc installed in C:\Msys\1.0\bin and bin is where sh.exe is located. Then you should try from C:\Msys\1.0\bin\sh.exe configure [using the dos cmd prompt] you would be in your ~lyx\resources\lyx directory which contains the configure file, and type in "C:\Msys\1.0\bin\sh.exe configure" (but no quotes when you type it) from the lyx\resources\lyx directory. For "me" this looks like: C:\Lyx\resources\lyx> C:\msys\1.0\bin\sh.exe configure But you want to substitute your actual installation location, maybe c:\program files\lyx\resources\lyx, in place of "my" location. Regards, Stephen
Re: Windows Installation Problem
John W. Sheppard, PhD wrote: To answer your questions, yes they were latex packages, and yes I am using MiKTeX. I had only looked at the textclass.lst file in the C:\Program Files\LyX\Resources\lyx directory. You are correct that the one that I did not check (in C:\Documents and Settings\your_id_here\Application Data\lyx) is 0-length. I copied the global one to the local one but that didn't work. That's a bit curious. I take it that you still got the "unable to find layout description/check textclass.lst" message after you copied the global textclass.lst file over the broken local one? Other than comments, the contents of the textclass.lst file is a list of LaTeX document classes, each line culminating with true or false according to whether a layout was found. Is anybody in the (global) list flagged true? In particular, you should have the following line: "article" "article" "article" "true" which signals that the basic article class has a layout. If nobody is flagged true (don't know if that's even possible), it might signal a fundamental problem with MiKTeX. Speaking of MiKTeX, have you verified that it's working post-update? When I try running sh configure, it doesn't run because paths don't appear to be set up right. I decided not to try to fix that because I wasn't sure it would get me anywhere. LyX 1.3.6 contains a "path prefix" that it prepends to your system path. The path prefix contains (should contain?) the path to the MinSYS bin directory, where sh and related programs live. So you don't need that on your system path for LyX to work. In any case, the main purpose of running the configure script would be to generate the global textclass.lst file, which you already have. The secondary purpose would be to verify that latex works (and that LyX can find it). So the immediate mystery is why LyX won't settle for the global textclass.lst file. Best guess from here would be that something is amiss with the file (corrupted, or doesn't show any usable layouts). Paul
Re: Windows Installation Problem
- Original Message - From: "John W. Sheppard, PhD" <[EMAIL PROTECTED]> To: Sent: Friday, December 23, 2005 12:41 PM Subject: RE: Windows Installation Problem To answer your questions, yes they were latex packages, and yes I am using MiKTeX. I had only looked at the textclass.lst file in the C:\Program Files\LyX\Resources\lyx directory. You are correct that the one that I did not check (in C:\Documents and Settings\your_id_here\Application Data\lyx) is 0-length. I copied the global one to the local one but that didn't work. When I try running sh configure, it doesn't run because paths don't appear to be set up right. I decided not to try to fix that because I wasn't sure it would get me anywhere. John That means you probably dont have Msys in your Windows PATH Suppose that you have Msys etc installed in C:\Msys\1.0\bin and bin is where sh.exe is located. Then you should try from C:\Msys\1.0\bin\sh.exe configure [using the dos cmd prompt] you would be in your ~lyx\resources\lyx directory which contains the configure file, and type in "C:\Msys\1.0\bin\sh.exe configure" (but no quotes when you type it) from the lyx\resources\lyx directory. For "me" this looks like: C:\Lyx\resources\lyx> C:\msys\1.0\bin\sh.exe configure But you want to substitute your actual installation location, maybe c:\program files\lyx\resources\lyx, in place of "my" location. Regards, Stephen
RE: Windows Installation Problem
To answer your questions, yes they were latex packages, and yes I am using MiKTeX. I had only looked at the textclass.lst file in the C:\Program Files\LyX\Resources\lyx directory. You are correct that the one that I did not check (in C:\Documents and Settings\your_id_here\Application Data\lyx) is 0-length. I copied the global one to the local one but that didn't work. When I try running sh configure, it doesn't run because paths don't appear to be set up right. I decided not to try to fix that because I wasn't sure it would get me anywhere. John - - - - - - - - - - Dr. John W. Sheppard - Fellow and Assistant Research Professor - ARINC and Johns Hopkins University - [EMAIL PROTECTED] and [EMAIL PROTECTED] -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Paul A. Rubin Sent: Friday, December 23, 2005 2:18 PM To: lyx-users@lists.lyx.org Subject: Re: Windows Installation Problem John W. Sheppard, PhD wrote: > > I apologize beforehand if this is one of those emails that appears a lot on > the list. I have looked through the www.lyx.org website and don't seem to be > able to find what I am looking for. The empty textclass.lst phenomenon occurs repeatedly in the list, but your symptoms are somewhat different from most. > > Recently, I downloaded lyx 1.3.6 for Windows and installed it. At first, > everything worked great until I attempted to install some packages that I > just "skipped through" during initial installation. Were the "skipped" packages LaTeX packages (and, if so, are you using MiKTeX), or were they supporting programs (Ghostscript, MinSYS, ...)? > Now, when I run lyx, I > instantly get a popup message that says > > LyX wasn't able to find any layout description! > > Check the contents of the file "textclass.lst" > Sorry, has to exist :-( > > [OK] > > I press the OK button and everything goes away. I looked at textclass.lst > and don't see anything useful. There are (or should be) two copies of textclass.lst on your system. One would be in C:\Program Files\LyX\Resources\lyx (assuming that's where you installed LyX), and the other would be in C:\Documents and Settings\your_id_here\Application Data\lyx. Which did you look at (both?), and did you see content in them, or were they empty (zero bytes)? The most common, if not only, problem with textclass.lst on Windows systems seems to be the configure script writing a zero-length file as a result of something going wrong. > I attempted to "manually run" configure, but > that doesn't work either. I have also attempted to uninstall and reinstall, > but nothing changes. By "manually run", do you mean running 'sh configure' in the C:\Program Files\LyX\Resources\lyx directory? If so, does that spew a lot of progress information to the shell window and, most importantly, does it indicate that a working copy of latex.exe was found? Paul
Re: Windows Installation Problem
John W. Sheppard, PhD wrote: I apologize beforehand if this is one of those emails that appears a lot on the list. I have looked through the www.lyx.org website and don't seem to be able to find what I am looking for. The empty textclass.lst phenomenon occurs repeatedly in the list, but your symptoms are somewhat different from most. Recently, I downloaded lyx 1.3.6 for Windows and installed it. At first, everything worked great until I attempted to install some packages that I just "skipped through" during initial installation. Were the "skipped" packages LaTeX packages (and, if so, are you using MiKTeX), or were they supporting programs (Ghostscript, MinSYS, ...)? Now, when I run lyx, I instantly get a popup message that says LyX wasn't able to find any layout description! Check the contents of the file "textclass.lst" Sorry, has to exist :-( [OK] I press the OK button and everything goes away. I looked at textclass.lst and don't see anything useful. There are (or should be) two copies of textclass.lst on your system. One would be in C:\Program Files\LyX\Resources\lyx (assuming that's where you installed LyX), and the other would be in C:\Documents and Settings\your_id_here\Application Data\lyx. Which did you look at (both?), and did you see content in them, or were they empty (zero bytes)? The most common, if not only, problem with textclass.lst on Windows systems seems to be the configure script writing a zero-length file as a result of something going wrong. I attempted to "manually run" configure, but that doesn't work either. I have also attempted to uninstall and reinstall, but nothing changes. By "manually run", do you mean running 'sh configure' in the C:\Program Files\LyX\Resources\lyx directory? If so, does that spew a lot of progress information to the shell window and, most importantly, does it indicate that a working copy of latex.exe was found? Paul