You are not logged in.
I just tried to re-open an old LyX document that I put together a while back. On opening, I have this error:
The selected document class
article
requires external files that are not available.
The document class can still be used, but the
document cannot be compiled until the following
prerequisites are installed:
article.cls
See section 3.1.2.2 (Class Availability) of the
User's Guide for more information.If I go to Document > Setting > Document class. 90% of the classes are unavailable, except a few called DocBook and one called AGU article. I'm not sure why any files have gone missing, this is the same installation that I used to write the document with in the first place.
I just re-installed texlive-core installed texlive-most (which it seems I didn't have installed), but that hasn't helped.
These are all the texlive packages I have installed:
pacman -Q | grep texlive
texlive-bibtexextra 2013.31550-1
texlive-bin 2013.30973-5
texlive-core 2013.31589-1
texlive-fontsextra 2013.31570-1
texlive-formatsextra 2013.30214-1
texlive-games 2013.31403-1
texlive-genericextra 2013.31402-1
texlive-htmlxml 2013.31548-1
texlive-humanities 2013.31488-1
texlive-latexextra 2013.31588-1
texlive-music 2013.31524-1
texlive-pictures 2013.31517-1
texlive-plainextra 2013.31502-1
texlive-pstricks 2013.31583-1
texlive-publishers 2013.31558-1
texlive-science 2013.31513-1I also did Tools > Reconfigure in LyX.
Am I missing something?
EDIT: Tools > TeX Information lists all of the cls files as existing in /usr/share/temf-dist/tex. So it seems like LyX is aware of the files. I just can't figure out why I can't load them anymore.
Last edited by themusicalduck (2013-10-18 18:09:32)
Offline
I had the same problem. It was a major PITA to track down the issue. Turns out that it is a problem with texlive configuration, not lyx. Someone else noted the same thing in a bug report, but didn't say what was actually wrong with the texlive configuration, which irritated the hell out of me, so I won't do the same thing.
The problem is that when upgrading texlive, a number of files were saved as .pacnew files, which needed to be manually merged or renamed before latex would work again. See https://bbs.archlinux.org/viewtopic.php?id=166163 for more info. According to one of the posters on that thread, running
DIFFSEARCHPATH=/etc/texmf pacdiff && fmtutil-sys --all as root will solve the problem, but I didn't scroll down that far in the post before I took action, so I haven't tried that. I just manually went into /etc/texmf, and manually overwrote all of the files without .pacnew with the .pacnew ones. Then I ran fmtutil-sys --all as root, moved my ~/.texlive to ~/.texliveold , and restarted LyX, which, to my delight, worked exactly as it should have.
Hope that helps you if you haven't fixed the problem yet, and/or helps others who stumble upon this problem.
Offline
Thank you! That fixed it!
DIFFSEARCHPATH=/etc/texmf pacdiff && fmtutil-sys --allWorks just fine.
Offline