TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using XeLaTeX in TeX Live suites 2010 and everything was going well before I did an upgrade via TeX Live Manager minutes ago. Now every document I compile gets a "File not found" error as the title suggests. But actually fontspec.sty is lying well under texlive\2010\tex\latex\fontspec so I don't understand why it complains about that.

Does anyone have the same situation?

share|improve this question
@user4457: A suggestion: Change your username to something more telling than "user4457". – lockstep Mar 26 '11 at 12:59
@user4457. Perhaps something went wrong with the update. Could you try sudo texhash at the Terminal and see if that helps (it rebuilds the file database). – Joseph Wright Mar 26 '11 at 13:43
@lockstep, nice to meet you, I am ziyuang. @Joseph-Wright, But I am using Windows. @Martin-Scharrer, thanks for refining my question. – ziyuang Mar 26 '11 at 14:46
Nice to meet you, too. I started as "user510". ;-) – lockstep Mar 26 '11 at 14:50

OK, I fixed it. Just copy the folder texlive\2010\tex\latex\fontspec to texlive\2010\texmf-dist\tex\latex\fontspec. There will be some other similar errors though. If it said "! Package graphics Error: No driver specified.", copy texlive\2010\tex\latex\latexconfig\graphics.cfg to the folder texlive\2010\texmf-dist\tex\latex\graphics. If it still doesn't work, do some database refresh job in tlmgr.

share|improve this answer
Feel free to accept your own answer to close this thread. – Martin Scharrer Mar 27 '11 at 17:56
ziyuang, @Martin's suggestion is a good one; however, you'll have to wait about 14 more hours before you can accept your answer (as far as I know). – Hendrik Vogt Mar 27 '11 at 20:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.