{"action":"opened","issue":{"url":"https://api.github.com/repos/DoubleSpout/ccap/issues/43","labels_url":"https://api.github.com/repos/DoubleSpout/ccap/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/DoubleSpout/ccap/issues/43/comments","events_url":"https://api.github.com/repos/DoubleSpout/ccap/issues/43/events","html_url":"https://github.com/DoubleSpout/ccap/issues/43","id":114305077,"number":43,"title":"MAC下面无法安装使用","user":{"login":"wavelynn","id":5876464,"avatar_url":"https://avatars.githubusercontent.com/u/5876464?v=3","gravatar_id":"","url":"https://api.github.com/users/wavelynn","html_url":"https://github.com/wavelynn","followers_url":"https://api.github.com/users/wavelynn/followers","following_url":"https://api.github.com/users/wavelynn/following{/other_user}","gists_url":"https://api.github.com/users/wavelynn/gists{/gist_id}","starred_url":"https://api.github.com/users/wavelynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavelynn/subscriptions","organizations_url":"https://api.github.com/users/wavelynn/orgs","repos_url":"https://api.github.com/users/wavelynn/repos","events_url":"https://api.github.com/users/wavelynn/events{/privacy}","received_events_url":"https://api.github.com/users/wavelynn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T16:27:47Z","updated_at":"2015-10-30T16:27:47Z","closed_at":null,"body":"之前直接npm install ccap，编译不通过\r\n\r\n后来升级了gcc为4.8.4也还是无法编译通过\r\n> node-gyp rebuild\r\n\r\n  CXX(target) Release/obj.target/hcaptha/addon/hcaptha.o\r\n  CXX(target) Release/obj.target/hcaptha/addon/cap.o\r\n../addon/cap.cc:81:44: warning: unused variable 'green' [-Wunused-variable]\r\n  const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 };\r\n                                           ^\r\n../addon/cap.cc:81:67: warning: unused variable 'blue' [-Wunused-variable]\r\n  const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 };\r\n                                                                  ^\r\n../addon/cap.cc:84:29: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]\r\n  for (unsigned int k = 0; k<count; ++k) {\r\n                           ~^~~~~~\r\n3 warnings generated.\r\n  SOLINK_MODULE(target) Release/hcaptha.node\r\nld: library not found for -lgcc_s.10.5\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [Release/hcaptha.node] Error 1\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)\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 Darwin 14.3.0\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! node -v v0.12.7\r\ngyp ERR! node-gyp -v v2.0.1\r\ngyp ERR! not ok \r\nnpm ERR! Darwin 14.3.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"install\" \"ccap\" \"--save\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! ccap@0.6.4 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the ccap@0.6.4 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the ccap 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 ccap\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:"}}