Browse Source

readme: update installation instructions

v1.x
Linus Unnebäck 9 years ago
parent
commit
25742bd453
  1. 20
      Readme.md

20
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). 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: You can quickly install the dependencies by using the command for your OS:
```bash OS | Command
$ wget https://raw.githubusercontent.com/Automattic/node-canvas/master/install -O - | sh ----- | -----
``` 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++`
or if you use MacPorts 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`
```bash Windows | [Instructions on our wiki](https://github.com/Automattic/node-canvas/wiki/Installation---Windows)
sudo port install pkgconfig libpng giflib freetype libpixman cairo
```
## Screencasts ## Screencasts

Loading…
Cancel
Save