Most of us Mac users are using MacTeX nowadays, which is a Mac version of TeX-Live. If you also use MacPorts you might, like I did, run into the problem that Macports likes to install another copy of TeX-Live to satisfy dependencies. It just doesn’t care that there already is a copy of MacTeX available on the system.
Here’s a workaround. Suppose you want to install pdfjam
. This little
program requires pdflatex
and some packages like pdfpages
. Suppose
you have all those installed already. Then go to the command line and
navigate into /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/pdfjam
. Here you type
sudo cp Portfile Portfile.backup
sudo vi Portfile
You’ll have to enter your password for the first command. Now delete
the following lines from your Portfile (you need to know how to use vi
for this, or alternatively use a different editor):
depends_run \
bin:pdflatex:texlive-basic \
path:share/texmf-dist/tex/latex/pdfpages/pdfpages.sty:texlive-latex-recommended
That’s it. Now you can sudo port install pdfjam
and everything
should be fine.