Gottox / node-pdfutils

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

Error when installing on windows #21

Open pofider opened 9 years ago

pofider commented 9 years ago

I am missing installation instructions for windows. Will there be a support for windows? Now I get following error:

> pdfutils@0.3.2 install F:\work\jsreport\node_modules\pdfutils
> node-gyp rebuild

F:\work\jsreport\node_modules\pdfutils>node "C:\Program Files\nodejs\node_module
s\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
gyp: Call to 'pkg-config --cflags poppler-glib cairo' returned exit status 1. wh
ile trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\work\jsreport\node_modules\pdfutils
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! pdfutils@0.3.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pdfutils@0.3.2 install script.
npm ERR! This is most likely a problem with the pdfutils package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls pdfutils
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "pdfutils" "--msvs_version=20
12"
npm ERR! cwd F:\work\jsreport\temp
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     F:\work\jsreport\temp\npm-debug.log
npm ERR! not ok code 0
Gottox commented 9 years ago

Hi!

Unfortunately, pdfutils uses poppler/glib/cairo to render PDFs. On MacOS, BSD and Linux it's easy to install those dependencies. But as I don't have any windows box here I never tried it on windows.

If s/o adds Windows support, I'll happily include those patches, but I can't put any effort in a windows port by myself.

samuelmartineau commented 9 years ago

Hi Enno,

Unfortunately, I have the same issue on ubuntu 14.04. Have you any idea of which kind of problem it could be?