Munzir Taha wrote:
> I have downloaded the snapshot and managed to build it but the document
> classes in Layout -> Document shows Unavailable: article, Unavailable
> book,... and when trying to open any file I have the message:
> Textclass error
> The document uses a missing Tex class "article". LyX will not be able to
> produce output.
> 
> I have two LyX installations: a 1.3.3 in /usr/bin installed from an rpm
> whereas the one I built is in /usr/local/bin. The first works great but
> the one I built faces this problem.
> 
> 
> I tried:
> $ /usr/local/bin/lyx -userdir .lyx -sysdir /usr/share/lyx/
> LyX: Bad boolean `amsart-seq'. Use "false" or "true" [around line 6 of
> file /usr/share/lyx/textclass.lst]
> LyX: Bad boolean `amsart'. Use "false" or "true" [around line 7 of
> file /usr/share/lyx/textclass.lst]
> ...
> ~
> 
> Any help?

Certainly. This was the first item in the 'status.13x' and ANNOUNCE files
that were distributed with LyX 1.3.4:

- it is now possible to open documents which use a textclass for
  which no LaTeX support is installed. The documents can be normally
  edited, but they can of course be neither previewed nor printed. Note
  that the format of the file .lyx/textclasses.lst has changed as a
  consequence and it is therefore not possible to use LyX 1.3.4 and an
  earlier version with the same .lyx/ directory.

The error message you report is symptomatic of your use of the 1.3.3
versions of textclasses.lst, which LyX 1.3.5 no longer understands.

So, to run LyX 1.3.3 and LyX 1.3.5 side by side, you need two sepatate
".lyx" directories. You can achieve this by running configure with one of:

  --program-prefix=PREFIX   prepend PREFIX to installed program names
  --program-suffix=SUFFIX   append SUFFIX to installed program names
  --with-version-suffix=<version>  install lyx files as lyx<version>

Personally, I use 
$ ../configure --with-version-suffix --with-pspell

which results in my different versions of LyX creating these directories:
/home/angus/.lyx-1.3.5cvs  /home/angus/.lyx-1.4.0cvs

HTH,

-- 
Angus

Reply via email to