Gottox / node-pdfutils

tool for analyzing and converting PDF
104 stars 23 forks source link

Proper installation on Mac OSX #1

Closed diorahman closed 10 years ago

diorahman commented 11 years ago

Hi,

I just want to put a note about my experience installing pdfutils on Mac OS X 10.8.x. Maybe you could put it in README to help others.

I'd prefer brew instead of macports since it is preferable nowadays

$ brew install poppler --with-glib
$ PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig npm install pdfutils

The latest line is necessary to get rid following error:

Package xcb-shm was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-shm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb-shm', required by 'cairo', not found

Thank you for this useful module

Thanks

Dhi