How can I install qpdf on Mac 10.8.3?

2019-04-19 18:47发布

问题:

When running R CMD check on packages on a Mac build server, I'm getting a warning

‘qpdf’ is needed for checks on size reduction of PDFs

I can't seem to get qpdf installed and on the system. I tried installing via the fink package manager, but according to the package database (http://pdb.finkproject.org/pdb/package.php/qpdf), qpdf doesn't seem to have been built since osx 10.6, and I'm on 10.8.3.

Can anyone point me to qpdf mac install or build instructions? Or is there a way to disable the warning when checking R packages?

This is somewhat related to the question qpdf.exe for compactPDF?, although they were on a windows machine and I'm on a mac.

回答1:

You can install qpdf with homebrew:

brew install qpdf


回答2:

MacPorts can help you. Download MacPorts from http://www.macports.org/ and run sudo port install qpdf.