{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/595","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/595/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/595/events","html_url":"https://github.com/Automattic/node-canvas/issues/595","id":97353547,"number":595,"title":"No package 'cairo' found","user":{"login":"Zander1983","id":996960,"avatar_url":"https://avatars.githubusercontent.com/u/996960?v=3","gravatar_id":"","url":"https://api.github.com/users/Zander1983","html_url":"https://github.com/Zander1983","followers_url":"https://api.github.com/users/Zander1983/followers","following_url":"https://api.github.com/users/Zander1983/following{/other_user}","gists_url":"https://api.github.com/users/Zander1983/gists{/gist_id}","starred_url":"https://api.github.com/users/Zander1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zander1983/subscriptions","organizations_url":"https://api.github.com/users/Zander1983/orgs","repos_url":"https://api.github.com/users/Zander1983/repos","events_url":"https://api.github.com/users/Zander1983/events{/privacy}","received_events_url":"https://api.github.com/users/Zander1983/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-26T22:01:20Z","updated_at":"2015-07-28T06:59:30Z","closed_at":null,"body":"Im trying to install npm canvas. I got lots of errors when running:\r\n\r\nsudo npm install canvas\r\nSo I downloaded the package from git and ran:\r\n\r\nmake\r\nBut i end up with an error regarding Cairo:\r\n\r\n> canvas@1.2.4 install /home/mark/Programming/node-canvas-master\r\n> node-gyp rebuild\r\n\r\nPackage cairo was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `cairo.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'cairo' found\r\ngyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)\r\ngyp ERR! System Linux 3.13.0-37-generic\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/mark/Programming/node-canvas-master\r\ngyp ERR! node -v v0.12.7\r\ngyp ERR! node-gyp -v v2.0.1\r\ngyp ERR! not ok \r\n\r\nnpm ERR! Linux 3.13.0-37-generic\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! canvas@1.2.4 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the canvas@1.2.4 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the canvas package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls canvas\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/mark/Programming/node-canvas-master/npm-debug.log\r\nmake: *** [build/Release/canvas.node] Error 1\r\nI have already run:\r\n\r\nsudo apt-get install libcairo2-dev\r\nand:\r\n\r\n sudo apt-get install libjpeg-dev\r\nAnd these have installed. But still I get this error. Any ideas what I can do?\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/125475813","html_url":"https://github.com/Automattic/node-canvas/issues/595#issuecomment-125475813","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/595","id":125475813,"user":{"login":"equiet","id":1063399,"avatar_url":"https://avatars.githubusercontent.com/u/1063399?v=3","gravatar_id":"","url":"https://api.github.com/users/equiet","html_url":"https://github.com/equiet","followers_url":"https://api.github.com/users/equiet/followers","following_url":"https://api.github.com/users/equiet/following{/other_user}","gists_url":"https://api.github.com/users/equiet/gists{/gist_id}","starred_url":"https://api.github.com/users/equiet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equiet/subscriptions","organizations_url":"https://api.github.com/users/equiet/orgs","repos_url":"https://api.github.com/users/equiet/repos","events_url":"https://api.github.com/users/equiet/events{/privacy}","received_events_url":"https://api.github.com/users/equiet/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T06:59:30Z","updated_at":"2015-07-28T06:59:30Z","body":"@LinusU Yes, here it is: #599."}}