Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing canvas. #432

Closed
samholmes opened this issue Jun 3, 2014 · 4 comments
Closed

Issue installing canvas. #432

samholmes opened this issue Jun 3, 2014 · 4 comments

Comments

@samholmes
Copy link

npm install canvas gives me:

npm WARN package.json iconGen@0.0.0 No repository field.
npm WARN package.json iconGen@0.0.0 No readme data.
npm http GET https://registry.npmjs.org/canvas
npm http 304 https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan

> canvas@1.1.3 install /Users/holmes/Desktop/iconGen/node_modules/canvas
> node-gyp rebuild

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
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. 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:797:12)
gyp ERR! System Darwin 13.2.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/holmes/Desktop/iconGen/node_modules/canvas
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.10.0
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0
~/Desktop/iconGen npm list
npm WARN package.json iconGen@0.0.0 No repository field.
npm WARN package.json iconGen@0.0.0 No readme data.
iconGen@0.0.0 /Users/holmes/Desktop/iconGen
└── (empty)
@samholmes
Copy link
Author

Installing cairo using brew was a bitch. Why is this module so hard to use?

@rvagg
Copy link
Contributor

rvagg commented Jun 4, 2014

because the dependencies are complex and not practical to bundle with the distributable; it's unfortunate but there's really a way around it.

@samholmes
Copy link
Author

So how do I get this bitch installed? Haha

@kangax
Copy link
Collaborator

kangax commented Jun 8, 2014

Please run export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants