Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Canvas install fail #152

Open
bingomanatee opened this Issue · 6 comments

4 participants

Dave Edelhart Christian Sanz Nathan Rajlich TJ Holowaychuk
Dave Edelhart

https://gist.github.com/1834053

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

Nathan Rajlich
Owner

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

@csanz Do you have cairo installed?

Dave Edelhart

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 https://registry.npmjs.org/canvas
npm http 304 https://registry.npmjs.org/canvas

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! code ELIFECYCLE
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
root@li283-239:/home/bingomanatee/ac/arena-colles#

Dave Edelhart

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 Holowaychuk
tj commented

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 
Nathan Rajlich
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.