Canvas install fail #152

bingomanatee opened this Issue Feb 15, 2012 · 7 comments


None yet

5 participants


tried it as root, on a cherry ubuntu linode, node 6.10... why me?


@bingomanatee Could you show us without the debug output from npm?

@csanz Do you have cairo installed?


I have cairo installed - Ubuntu 64 bit.

root@li283-239:/home/bingomanatee/ac/arena-colles# npm install canvas
npm WARN underscore@1.2.4 dependencies field should be hash of : pairs
npm http GET
npm http 304

canvas@0.10.2 preinstall /home/bingomanatee/ac/arena-colles/node_modules/canvas
node-waf configure build

Checking for program g++ or c++ : not found
Checking for program icpc : not found
Checking for program c++ : not found
/home/bingomanatee/ac/arena-colles/node_modules/canvas/wscript:16: error: could not configure a cxx compiler!
npm ERR! error installing canvas@0.10.2

npm ERR! canvas@0.10.2 preinstall: node-waf configure build
npm ERR! sh "-c" "node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the canvas@0.10.2 preinstall script.
npm ERR! This is most likely a problem with the canvas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.0.18-x86_64-linode24
npm ERR! command "node" "/usr/bin/npm" "install" "canvas"
npm ERR! cwd /home/bingomanatee/ac/arena-colles
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.0-2
npm ERR! message canvas@0.10.2 preinstall: node-waf configure build
npm ERR! message sh "-c" "node-waf configure build" failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/bingomanatee/ac/arena-colles/npm-debug.log
npm not ok


Sorry - this was my bad - starting out with a fresh Linode, didn't have g++ installed. Works. I am leaving this issue open for csanz but I am satisfied.

tj commented Feb 16, 2012

hmm yeah @csanz it says it hasn't found a few libs (hard to see with the other npm noise). the jpeg/gif libs are optional though

Checking for library gif                 : not found 
Checking for library jpeg                : not found 
Checking for cairo                       : not found 

@csanz Make sure you have cairo and the cairo-dev packages.

LinusU commented Feb 15, 2016

Closing this since it's an old thread, please see our new installation instructions and report back if you still have problems...

@LinusU LinusU closed this Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment