Installation Fedora

ZHAO Xudong edited this page Jul 8, 2014 · 4 revisions

Installing node-canvas on Fedora 18 (and other rpm-based distributions) is easy (i hope so)!

Installing node.js 0.10.12

$ mkdir nodeSRC
$ cd nodeSRC/
$ wget
$ tar -zxvf node-v0.10.12.tar.gz
$ ./configure
$ make
$ su -c 'make install'
$ cd ..

Installing npm

NPM is installed from the box

Installing dependencies

$ su -c 'yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel'

in centos some font will not be installed by default, so need install it yourself

yum search arial
yum install liberation-sans-fonts.noarch

Installing node-canvas

$ npm install canvas