Skip to content

Instantly share code, notes, and snippets.

@jfsiii
Created November 28, 2010 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfsiii/718510 to your computer and use it in GitHub Desktop.
Save jfsiii/718510 to your computer and use it in GitHub Desktop.
Cannot install 0.3.2
[jfsiii@web165 node_flot]$ uname -a
Linux web165.webfaction.com 2.6.18-194.17.1.el5PAE #1 SMP Wed Sep 29 13:31:51 EDT 2010 i686 i686 i386 GNU/Linux
[jfsiii@web165 node_flot]$ npm update canvas
npm info it worked if it ends with ok
npm info using npm@0.2.8-1
npm info using node@v0.2.5
npm info updates canvas@0.3.2
npm info preupdate canvas@0.3.2
npm info fetch http://registry.npmjs.org/canvas/-/canvas-0.3.2.tgz
npm info preinstall canvas@0.3.2
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 : not found
Checking for node prefix : ok /home/jfsiii
Checking for library jpeg : yes
Checking for cairo : yes
'configure' finished successfully (0.108s)
Waf: Entering directory `/home/jfsiii/lib/node/.npm/canvas/0.3.2/package/build'
[1/9] cxx: src/ImageData.cc -> build/default/src/ImageData_1.o
[2/9] cxx: src/color.cc -> build/default/src/color_1.o
[3/9] cxx: src/init.cc -> build/default/src/init_1.o
[4/9] cxx: src/Canvas.cc -> build/default/src/Canvas_1.o
[5/9] cxx: src/CanvasRenderingContext2d.cc -> build/default/src/CanvasRenderingContext2d_1.o
[6/9] cxx: src/CanvasGradient.cc -> build/default/src/CanvasGradient_1.o
[7/9] cxx: src/PixelArray.cc -> build/default/src/PixelArray_1.o
[8/9] cxx: src/Image.cc -> build/default/src/Image_1.o
../src/color.cc:186: warning: converting to non-pointer type ‘uint32_t’ from NULL
../src/CanvasRenderingContext2d.cc: In constructor ‘Context2d::Context2d(Canvas*)’:
../src/CanvasRenderingContext2d.cc:127: warning: converting to non-pointer type ‘short int’ from NULL
../src/Image.cc: In member function ‘cairo_status_t Image::loadSurface()’:
../src/Image.cc:243: warning: enumeration value ‘UNKNOWN’ not handled in switch
../src/Image.cc: In member function ‘cairo_status_t Image::loadJPEG()’:
../src/Image.cc:322: error: ‘cairo_format_stride_for_width’ was not declared in this scope
Waf: Leaving directory `/home/jfsiii/lib/node/.npm/canvas/0.3.2/package/build'
Build failed: -> task failed (err #1):
{task: cxx Image.cc -> Image_1.o}
npm info canvas@0.3.2 Failed to exec preinstall script
npm ERR! install failed Error: canvas@0.3.2 preinstall: `node-waf configure build`
npm ERR! install failed `sh` failed with 1
npm ERR! install failed at ChildProcess.<anonymous> (/home/jfsiii/lib/node/.npm/npm/0.2.8-1/package/lib/utils/exec.js:24:18)
npm ERR! install failed at ChildProcess.emit (events:27:15)
npm ERR! install failed at ChildProcess.onexit (child_process:168:12)
npm ERR! install failed at node.js:773:9
npm info install failed rollback
npm info not installed canvas,0.3.2
npm info install failed rolled back
npm ERR! install failed canvas@0.3.2
npm info failed to update canvas@0.3.2
npm ERR! Error: canvas@0.3.2 preinstall: `node-waf configure build`
npm ERR! `sh` failed with 1
npm ERR! at ChildProcess.<anonymous> (/home/jfsiii/lib/node/.npm/npm/0.2.8-1/package/lib/utils/exec.js:24:18)
npm ERR! at ChildProcess.emit (events:27:15)
npm ERR! at ChildProcess.onexit (child_process:168:12)
npm ERR! at node.js:773:9
npm ERR!
npm ERR! Failed at the canvas@0.3.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 may be additional logging output above.
npm not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment