I am having trouble completing the installation process. How can I get MacTeX installed?
One common problem is that users obtain a corrupted
MacTeX.pkg after downloading the large file. There is an easy way to
check that your download was successful. Run Apple's Terminal application in
/Applications/Utilities. After the prompt, type the command
and a space, and then drag and drop the file MacTeX.pkg to the
Terminal window to complete the command. Push Return.
The Mac will compute an "md5 checksum". This sum should be
the sum shown at the top of the downloading page here.
Some users downloading with Google Chrome and possibly other browsers
report defective downloads. We recommend downloading
with Safari. Users with problems also report success after downloading
via the torrent network.
Defective downloads are essentially never due to a bad file on the
server because we test after uploading new versions. But users with
download problems sometimes succeed after trying an alternate
CTAN site. To do this, check on one of the links in the mirror page.
If you are at an institution with a large body of TeX users, a support person could put MacTeX-2022 on the DVD and loan you the DVD.
A final solution, if all else fails, is to
and download BasicTeX; this distribution is quite complete and serviceable and the smaller download may cause fewer problems. You will also need a front end like TeXShop or those included in
Do I need to uninstall my previous TeX distribution before installing MacTeX?
AM.02: No. The TeX Live in MacTeX installs in a new location, /usr/local/texlive/2022, and does not overwrite the old distribution.
Consult the documentation for your older distribution to uninstall it, if you want to save space.
When trying to typeset, my front end puts up a dialog claiming
that it cannot find tex (or pdfLaTeX, or XeTeX)
AM.03: Some users have installed software which incorrectly set the
permissions on /usr/local. To see if you have this problem, open Terminal
in /Applications/Utilities. Type
ls -l /usr
and push RETURN (note that "-l" is a small el, not a number). Terminal
will print a list of folders. Look at the entry named "local". The permissions
at the start of this line should be
If instead they are "drwx------" then carefully type the following
line in Terminal:
sudo chmod 755 /usr/local
You will be asked to supply your Login password.
Fink (or MacPorts) is installed on my computer.
After installing MacTeX,
pdfTeX and TeX crash with error messages referring to broken libraries in
/sw/... or /opt/...
the versions of pdftex and tex in Fink or MacPorts run instead of the versions in TeX Live.
pdftex runs erratically.
MacTeX installs a symbolic link to the TeX Live binaries named
/Library/TeX/texbin. Calling /Library/TeX/texbin/pdftex will reach the pdftex in TeX Live. Once this version runs, it will not be confused by the presence of Fink or MacPorts and will use the correct libraries, style files, fonts, and utilities in TeX Live.
The GUI programs shipped with MacTeX understand this symbolic link and automatically call /Library/TeX/texbin//pdftex. But if you call pdftex from the Terminal
or another application, you may encounter the problem. The solution is simple.
Find your shell startup script. That script should contain a command modifying PATH so /sw (or /opt) comes first. After this command, add a line to the script prepending /Library/TeX/texbin to the beginning of your PATH.
Where do I put my personal additions to the texmf tree?
AM.05: They go in
and various subdirectories structured according to the standard TeX conventions. Here ~/Library is the Library folder in your home directory. You may have to create the texmf folder, and any subfolders of it mentioned below. For instance, TeX will find any file in
or a subfolder of this folder, and LaTeX will find any file in
or a subfolder of this folder. It is not necessary to run texhash when adding files to this local tree.
On Lion and above, the ~/Library folder is hidden. To open it, use the Finder's Go menu and hold down the Option key to reveal
an extra item in the menu.
Why can't the latest MacTeX find my local BibTeX files? Earlier versions of MacTeX worked correctly.
: TeX Live is slightly pickier about placement of these files. ".bib" files go in
or subfolders of this directory, and ".bst" files go in
or subfolders of this directory.
I installed MacTeX and now all of the fonts in my TeX documents are
wrong. I checked this in Preview, TeXShop, LaTeXiT, TeXniscope, and
other programs. They all display bad fonts, so I must have messed up
the installation. Maybe it is because I used custom install and
installed the Latin Modern and TeX Gyre fonts.
(known as the "font cache bug" in Mac OS X)
was fixed in MacTeX-2009 and all later distributions are fine.
Does MacTeX-2022 work on Monterey?
Yes, it has been extensively tested and used on Monterey on both Intel and Arm machines. MacTeX-2022 contains native code for both processors. This question will come up again when Apple releases their next version of
macOS, probably in fall of 2022. But the developers of MacTeX-2022 will have downloaded the beta of that system on the first day of WWDC,
the developer conference, and worked on it extensively during the summer. If problems exist after the system release, they will be prominently mentioned on these
Where can I obtain and download older versions of MacTeX?
To Obtain Older Versions of MacTeX If You Are Running Mac OS 10.3 through 10.11, click here
Typesetting in TeXShop gives an error message:
"Can't find required tool. /usr/local/texlive/bin/x86_64-darwin does not exist. Perhaps TeX Live was not installed or was removed ..."
This error means that TeXShop could not find a TeX distribution. Usually users who see it downloaded TeXShop, but forgot to download TeX itself. The solution is to install TeXLive-2022. If you installed with MacTeX, you will not see this error.
TeXShop refuses to start, or behaves strangely.
Or, for example, you get the message:
"/usr/texbin/altpdflatex does not exist.
Perhaps TeX Live was not installed or was removed during a system upgrade."
AT.02: There may be a damaged TeXShop preferences file. Quit TeXShop, and reboot your machine. Then before starting TeXShop again, move the file
to your desktop. Then start TeXShop. If this fixes the problem, reset your preferences as desired. If not, put the old plist file back to restore your old preferences.
Make sure you are using the
latest version of TeXShop
TeXShop complains of a damaged Macros file when it starts.
AT.03: There may be a damaged Macros folder in TeXShop's configuration files. Quit TeXShop, move the Macros folder
to the desktop, and restart TeXShop. It will create a new Macros folder with a working Macros file.