Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I freshly installed 'basic' version of TeX Live 2012 (not full, only basic version).

I have following line in my code: \usepackage[T1]{fontenc}

I get following error:

(/usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/t1enc.def)
/usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty:100: Font T1/cmr/
m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found.
<to be read again> 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont

/usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty:100:  ==> Fatal error occurred, no output PDF file produced!

I understand that some packages are missing, however I do not know which ones.

Also, solution to this problem on most of the earlier posts is to install ubuntu latex recommended package, however please note that I am not using LaTeX from Ubuntu's software center (which is old TeX Live 2009) but rather have manually installed basic version of TeX Live 2012 as per instructions here: http://www.tug.org/texlive/quickinstall.html

Please let me know how do I solve this issue (I don't want to install complete version of TeX Live 2012, only those packages necessary to run this piece of code).

share|improve this question
1  
Do you have the cm-super package installed? –  doncherry Oct 3 '12 at 18:02
5  
You should do sudo tlmgr install ec and sudo tlmgr install cm-super. But the best thing you can do is to install the full version or you'll be always confronting with missing packages. –  egreg Oct 3 '12 at 22:26
    
@egreg: Thanks, your answer solved my problem. –  abhinavkulkarni Oct 4 '12 at 2:23

3 Answers 3

up vote 21 down vote accepted

In this case, the missing file is ecrm1000.tfm according to the error message. To know which package it belongs to, you can use the command tlmgr search --file ecrm1000.tfm which finds it in package ec. So you have to install it with tlmgr install ec.

Then you may have other errors, other files to look up and other packages to install. Since the process may be cumbersome, you may want to install at least collection-latexrecommended and collection-fontsrecommended if you really don't want a full install.

An alternative would be to use the texliveonfly http://ctan.org/pkg/texliveonfly package which installs missing packages on the fly (see its documentation).

share|improve this answer
    
Thanks, awesome answer! –  abhinavkulkarni Oct 4 '12 at 12:31
    
I had to add --global switch to find the file because otherwise the search appears to be only in the local installation: tlmgr search --file ecrm1000.tfm --global –  Davor Cubranic Oct 16 at 18:16

I just installed the recommended fonts and it worked for me. =) The code for Linux:

sudo apt-get install texlive-fonts-recommended
share|improve this answer

U just need to press Enter key and it goes on, that won't effect your PDF file, and you don't bother to figure it out where's the error.

The easiest way for fixing it once for all, is, you download an installer and re-install for a complete installation, then it will be alright.

share|improve this answer
1  
This seems better-suited as a comment. –  Werner Sep 26 at 6:17

Your Answer

 
discard

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.