I can't find the format file xelatex.fmt

I am a newbie to TeX. I want to use XeLaTeX for my CV, but when I try to compile with Texmaker. a get an error saying: This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) restricted \write18 enabled.

``````kpathsea: Running mktexfmt xelatex.fmt
I can't find the format file `xelatex.fmt'!
``````

What is the problem here? How can I fix it?

-
Reinstalling via `sudo apt-get install --reinstall texlive-xetex` did the job for me. –  user23678 Dec 26 '12 at 16:14

try to run `sudo fmtutil-sys --all` which should create all missing format files.

-
It still replys with:This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) restricted \write18 enabled. kpathsea: Running mktexfmt xelatex.fmt I can't find the format file `xelatex.fmt'! –  cyberscientist Jul 16 '11 at 7:58
What does the summary output of the above command say? –  Herbert Jul 16 '11 at 8:02
there output ofcommand was very long, I dont know how to retrive and display it here. –  cyberscientist Jul 16 '11 at 23:16

If you installed TeX from the repositories of your Linux system, you could reinstall the xetex package from a repository.

• Redhat/Fedora: `sudo yum reinstall texlive-xetex`

• Debian/Ubuntu: `sudo apt-get install --reinstall texlive-xetex`

-
Thanks for your reply. I did a reinstall of texlive-xetex.But I still have the same error. –  cyberscientist Jul 16 '11 at 23:15

Make sure that you have the proper LaTeX packages installed in addition to the XeLaTeX ones.

In my installation of TeX Live on a Mac, I initially didn't have the `latex` or `latex-bin` packages installed, but I did have `xetex` installed. Running `xelatex` would result in the error message given by cyberscientist.

Try the following to install the LaTeX packages and generate `xelatex.fmt`:

``````tlmgr install latex latex-bin
fmtutil ---all
``````

If you need to do things systemwide rather than in your user directory, try

``````sudo tlmgr install latex latex-bin
sudo tlmgr-sys --all
``````

For me this unintuitively resulted in generation of `xelatex.fmt`. `xelatex` now runs successfully.

-
The last command should be `sudo fmtutil-sys --all`, shouldn't it? –  egreg Oct 12 '12 at 22:52