karlwestin / node-gumbo-parser

Parsing HTML in node using google's gumbo parser
MIT License
154 stars 12 forks source link

Install error #1

Closed sindresorhus closed 11 years ago

sindresorhus commented 11 years ago

Tried installing through npm, but got a gyp error:

> gumbo-parser@0.0.1 install /Users/sindresorhus/Downloads/node_modules/gumbo-parser
> node-gyp rebuild

Package gumbo was not found in the pkg-config search path.
Perhaps you should add the directory containing `gumbo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gumbo' found
gyp: Call to 'pkg-config --libs gumbo' returned exit status 1. while 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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:415:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sindresorhus/Downloads/node_modules/gumbo-parser
gyp ERR! node -v v0.10.12
gyp ERR! node-gyp -v v0.10.0
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

Same when I tried running node-gyp configure:

Package gumbo was not found in the pkg-config search path.
Perhaps you should add the directory containing `gumbo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gumbo' found
gyp: Call to 'pkg-config --libs gumbo' returned exit status 1. while 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 (/usr/local/lib/node_modules/node-gyp/lib/configure.js:424:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.4.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure"
gyp ERR! cwd /Users/sindresorhus/Downloads/gumbo-parser
gyp ERR! node -v v0.10.12
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
karlwestin commented 11 years ago

Sorry i forgot, for now you need to cd into the gumbo (deps/gumbo-parser) folder and do ./configure && make i'll need to figure out how to pre-build the linked lib for gumbo from node-gyp somehow :)

karlwestin commented 11 years ago

question: was this when you installed over npm or from source?

jbuck commented 11 years ago

I got the same error while installing from npm

sindresorhus commented 11 years ago

@karlwestin both, first error is from npm, second is from source.

karlwestin commented 11 years ago

both npm and repo builds should work on the mac now, i hope to fix linux on the weekend! (keeping open til then)

with tons of warnings that is haha

karlwestin commented 11 years ago

So it seems we have a linux build. as soon as i've got a people to try that i'll close this and add a specific windows issue.

karlwestin commented 11 years ago

i'm closing this now, it seems the linux build is doing well :)