This question already has an answer here:

I'm trying to compile a latex file from coq on Mac and get the following error:

File utf8x.def not found.

Where can I find utf8x.def?

Most of the other answers pertain to ubuntu and don't work on mac.

marked as duplicate by user36296, Kurt, barbara beeton, Mico, Stefan Pinnow Aug 25 '17 at 19:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    No TeX Live installation on Mac OS that I know of puts files in /usr/share, so your question is ill-posed. – egreg Aug 25 '17 at 16:45

If you installed BasicTeX or a manual install on Linux, you can use tlmgr and run sudo tlmgr install ucs which installs the ucs package which includes utf8x.

If you installed with apt-get on linux, use sudo apt-get install texlive-latex-extra

  • 2
    You already gave this answer here: tex.stackexchange.com/a/387532/124577 – TeXnician Aug 25 '17 at 16:34
  • If one installs MacTeX, there is no need to add ucs, because it's already included. – egreg Aug 25 '17 at 16:43
  • @egreg True, I've updated to say BasicTeX (the smaller version of MacTeX) which is what I installed. – Loren Aug 26 '17 at 16:15
  • @TeXnician My other similar answer tex.stackexchange.com/questions/43779/… was deleted as an improper answer because the question was ubuntu related. They recommended I post I new Mac specific question. I was worried they would also delete my answer on the post you cited since it gave a mac answer to an ubuntu question. Thus, I created a new mac specific question as an attempt at doing the right thing, though it still seems to be wrong to people and a duplicated of the ubuntu question... – Loren Aug 26 '17 at 16:18

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