From 25742bd4533d6e55d646bbf10fe1d8e539b5cfc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Fri, 6 Nov 2015 14:15:56 +0100 Subject: [PATCH] readme: update installation instructions --- Readme.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Readme.md b/Readme.md index 98b9458..9c93280 100644 --- a/Readme.md +++ b/Readme.md @@ -21,17 +21,15 @@ $ npm install canvas Unless previously installed you'll _need_ __Cairo__. For system-specific installation view the [Wiki](https://github.com/Automattic/node-canvas/wiki/_pages). -You can quickly install Cairo and its dependencies for OS X using the one liner below: - -```bash -$ wget https://raw.githubusercontent.com/Automattic/node-canvas/master/install -O - | sh -``` - -or if you use MacPorts - -```bash -sudo port install pkgconfig libpng giflib freetype libpixman cairo -``` +You can quickly install the dependencies by using the command for your OS: + +OS | Command +----- | ----- +OS X | `brew install pkg-config cairo libpng jpeg giflib` +Ubuntu | `sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++` +Fedora | `sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel` +Solaris | `pkgin install cairo pkg-config xproto renderproto kbproto xextproto` +Windows | [Instructions on our wiki](https://github.com/Automattic/node-canvas/wiki/Installation---Windows) ## Screencasts