I recently updated my tex distribution on mac to try and get use of a font in texlive-extra (I used macports). However, this didn't work and led to errors. As a result I decided to do a clean install following the instructions here: http://www.tug.org/mactex/uninstalling.html moving usr/local/texlive and usr/local/texmf to trash, along with the GUI applications.

When I did a clean install from mactex here: http://www.tug.org/mactex/index.html all seemed to go fine, but when I try and compile using a makefile that was fine before I get the result:

LaTeX Error: File `book.cls' not found.

(same for articles, reports, etc.)

If I run macports with

sudo port install texlive texlive-latex-extra

I get the result:

--->  Computing dependencies for texlive
--->  Cleaning texlive
--->  Computing dependencies for texlive-latex-extra
--->  Cleaning texlive-latex-extra
--->  Scanning binaries for linking errors
--->  No broken files found.

And nothing happens.

If someone could help me out with fixing this, or the correct way to do a clean install I would be grateful.

I came across a similar issue here: article.cls not found after last update but it was closed without a clear answer.


  • 1
    Mactex and the stuff from macports are not the same and probably should not be used together. My guess is that you have two latex installations and your Mac gets confused – daleif Sep 13 '17 at 8:14
  • Thanks, I didn't realise that. I've run 'sudo port uninstall texlive texlive-latex-extra' but the problem is still persisting. – FluidFox Sep 13 '17 at 8:25
  • Uninstailling is probably not enough, and LaTeX on the mac is a heap of shortcuts that also needs cleaning. In a terminal what does which pdflatex return? What does kpsewhich article.cls say? – daleif Sep 13 '17 at 8:35
  • which pdflatex returns /opt/local/bin/pdflatex kpsewhich article.cls returns nothing – FluidFox Sep 13 '17 at 8:39
  • 1
    @FluidFox Don't install the MacPorts version of TeX Live under any circumstance. Uninstall it to begin with, then install MacTeX. – egreg Sep 13 '17 at 10:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.