LearnBoost/node-canvas — Issue #129: waf causing issues with npm install canvas
Author: geisert
Created: 2011-11-20 01:48:13+00:00
State: open

I am trying to install the canvas module and it is not working because of the 'node-waf configure build'
Other modules install with no problems

npm WARN cli-color@0.1.4 package.json: bugs['web'] should probably be bugs['url']

> canvas@0.8.1 preinstall /root/prainz/ige/node_modules/canvas
> node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /usr/local/lib/node
Checking for node prefix : ok /usr/local
Checking for library gif : not found
Checking for library jpeg : yes
Checking for cairo : yes
'configure' finished successfully (0.307s)
Waf: Entering directory `/root/prainz/ige/node_modules/canvas/build'
[1/9] cxx: src/CanvasRenderingContext2d.cc -> build/default/src/CanvasRenderingContext2d_1.o
[2/9] cxx: src/Canvas.cc -> build/default/src/Canvas_1.o
[3/9] cxx: src/init.cc -> build/default/src/init_1.o
[4/9] cxx: src/color.cc -> build/default/src/color_1.o
[5/9] cxx: src/PixelArray.cc -> build/default/src/PixelArray_1.o
[6/9] cxx: src/ImageData.cc -> build/default/src/ImageData_1.o
[7/9] cxx: src/CanvasGradient.cc -> build/default/src/CanvasGradient_1.o
[8/9] cxx: src/Image.cc -> build/default/src/Image_1.o
../src/Image.cc: In member function ‘cairo_status_t Image::loadJPEGFromBuffer(uint8_t*, unsigned int)’:
../src/Image.cc:562: error: ‘jpeg_mem_src’ was not declared in this scope
Waf: Leaving directory `/root/prainz/ige/node_modules/canvas/build'
Build failed: -> task failed (err #1):
{task: cxx Image.cc -> Image_1.o}
npm ERR! error installing canvas@0.8.1 Error: canvas@0.8.1 preinstall: `node-waf configure build`
npm ERR! error installing canvas@0.8.1 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing canvas@0.8.1 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing canvas@0.8.1 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing canvas@0.8.1 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! canvas@0.8.1 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.8.1 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.4-linode38
npm ERR! command "node" "/usr/local/bin/npm" "install" "canvas"
npm ERR! cwd /root/prainz/ige
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/prainz/ige/npm-debug.log
npm not ok