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 follow the directions here:

$sudo texhash
warning: kpathsea: configuration file texmf.cnf not found in these directories:       /opt/local/etc/texmf.
texhash: Done.

But I can fix this by doing

$sudo /usr/texbin/texhash/
texhash: Updating /usr/local/texlive/2012/../texmf-local/ls-R... 
texhash: Updating /usr/local/texlive/2012/texmf/ls-R... 
texhash: Updating /usr/local/texlive/2012/texmf-config/ls-R... 
texhash: Updating /usr/local/texlive/2012/texmf-dist/ls-R... 
texhash: Updating /usr/local/texlive/2012/texmf-var/ls-R... 
texhash: Done.

Then I do updmap-sys --enable Map=mtpro2.map:

$sudo updmap-sys --enable Map=mtpro2.map 
warning: kpathsea: configuration file texmf.cnf not found in these directories: /opt/local/etc/texmf.
warning: kpathsea: configuration file texmf.cnf not found in these directories: /opt/local/etc/texmf.
warning: kpathsea: configuration file texmf.cnf not found in these directories: /opt/local/etc/texmf.
updmap: Cannot find TEXMFROOT, aborting!

I know for sure that texmf.cnf is not in the specified directory since that is from an old installation (not MacTeX). The correct location is /usr/local/texlive/2012/texmf.cnf but I have no idea how to get these commands to recognize this.

And fyi, which kpathsea returns nothing.

share|improve this question
1  
Perhaps this does help: Manual font installation and especially Problems installing MathTime Professional 2 font on TexLive. –  Speravir Feb 6 at 3:07
1  
How did you install TeX exactly? I ask because MacTeX used to install by default under /usr/local. I thought perhaps it had changed to /opt but tug.org/mactex//What_Is_Installed.pdf suggests that it still installs into /usr/local. Did you customise your installation directory? Install TeX through some other means? Or? –  cfr Feb 6 at 4:16
    
@cfr I installed for the first time while installing TeXShop, but then I later installed Kile using macports. You're right that if I do kpsewhich --var-value TEXMFLOCAL I get /opt/local/share/texmf-local –  justin.dong Feb 6 at 4:22
3  
So you probably have two installations of TeX. This is not really a good idea unless you are sure you know what you are doing. I'm guessing that's not the case because you say you are using MacTeX when you clearly are not. I would recommend uninstalling the macports one, making sure you have the latest MacTeX and then trying again. I am not sure how macports works at this point so I'm not sure what to suggest about Kile but MacTeX is likely to be more straightforward and better maintained than the macports version. (Just because it is specialist and direct from the source, as it were.) –  cfr Feb 6 at 4:26
    
@cfr yeah, I haven't been using Kile much recently so I went and uninstalled the texlive via macports or at least I think I did. But the problem now is that after re-installing MacTeX, if I do sudo texhash I get warning: kpathsea: configuration file texmf.cnf not found in these directories: /opt/local/etc/texmf. I actually can't find that file anywhere in my system. But TeXShop is working without issues as far as I can tell –  justin.dong Feb 6 at 4:49

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.