This question is exactly the same as this one, but for Mac OS. My error is:
Font OT1/pcr/m/n/9=pcrr7t at 9.0pt not loadable: Metric (TFM) file not found
So I tried the answer in the linked question. My missing file is pcrr7t.tfm. When I tried tlmgr search --file pcrr7t.tfm, it is found in:
courier:
texmf-dist/fonts/tfm/adobe/courier/pcrr7t.tfm
Therefore, I tried to install courier with sudo tlmgr install courier. It turned out I already have courier.
tlmgr: package repository http://ctan.mirrorcatalogs.com/systems/texlive/tlnet
tlmgr install: package already present: courier
But then why I can't compile the tex file. Thanks in advance.
UPDATE
This error (and some others of the same kind) only occurs when I run pdflatex draft.tex. I can compile OK with TeXShop. But I only want to run from command line.
initexmf --mkmapsfrom the command line. It might a problem with the psfonts database (psfonts.map and the like). Also check if the font is mentioned inupdmap.cfg. – Bernard Oct 06 '15 at 22:11sudo mktexlsr? – egreg Oct 06 '15 at 22:18sudo tlmgr install --reinstall courier– egreg Oct 06 '15 at 22:27which pdftexreturn? – egreg Oct 06 '15 at 22:30/opt/local/bin/pdftex– sean Oct 06 '15 at 22:36which tlmgrreturn? – cfr Oct 06 '15 at 22:43tlmgris not provided by the MacPorts distribution, so it will update the MacTeX distribution. – egreg Oct 06 '15 at 22:44/Library/TeX/texbin/tlmgr– sean Oct 06 '15 at 22:49