2014-12-05 3 views
1

Windows 8 컴퓨터에 Canvas를 설치하는 데 문제가 있습니다.Windows 8 컴퓨터에 카이로 및 캔버스 설치

나는 돼지 - 기술자를 사용해야하고, 내가이 오류 얻을 'NPM 캔버스를 설치'하려고 할 때 그것을 위해 나는 캔버스를 설치해야하지만 :

c:\users\omri\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot 
open include file: 'cairo/cairo.h': No such file or directory (..\src\CanvasPatt 

gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe 
` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ 
npm\node_modules\node-gyp\lib\build.js:267:23) 
gyp ERR! stack  at ChildProcess.emit (events.js:98:17) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (child_process.js:810: 
12) 
gyp ERR! System Windows_NT 6.2.9200 
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu 
les\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\iolo\scipy-0.14.0\node_modules\canvas 
gyp ERR! node -v v0.10.33 
gyp ERR! node-gyp -v v1.0.1 
gyp ERR! not ok 

npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install 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-gyp rebuild 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls canvas 
npm ERR! There is likely additional logging output above. 
npm ERR! System Windows_NT 6.2.9200 
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod 
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "canvas" 
npm ERR! cwd C:\iolo\scipy-0.14.0 
npm ERR! node -v v0.10.33 
npm ERR! npm -v 1.4.28 
npm ERR! code ELIFECYCLE 
npm ERR! not ok code 0 

가 어떻게이 문제를 해결할 수 있습니까?

+0

Visual C++ 2010 이상이 설치되어 있습니까? – mscdex

+0

예, 설치되어 있습니다. @mscdex –

+0

어떤 버전을 설치하셨습니까? – mscdex

답변

1

누락 된 카이로 라이브러리 오류를 해결하려면 canvas 모듈의 위키 here에 카이로를 설치하는 지침을 따르십시오.

+0

대단히 감사합니다 :) –

0

캔버스는 하드 어딘가에 코딩되었거나 (또는 ​​노드 -gyp에서 큐를 가져 와서) GTK이라는 GTK2 디렉토리 만 허용합니다. 그래서 그것은 부드럽게 GTK2를 C:\GTK으로 추출하는 것입니다. 그렇지 않으면 누락 된 헤더 파일을 쫓아 낼 수 있습니다.