Compile pdf-ftools on Mac – env settings

To compile pdf-tools under OS X:

The paths for the PKG_CONFIG_PATH have to be set before calling pdf-tools-install.

If they are set as follow (depending on via homebrew installed zlib package)

(setenv "PKG_CONFIG_PATH"
        (concat
         "/usr/local/Cellar/zlib/1.2.8/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig:"
         (getenv "PKG_CONFIG_PATH")))

After this,

pdf-tools-install

works without problems in emacs.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s