{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/178","labels_url":"https://api.github.com/repos/lovell/sharp/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/178/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/178/events","html_url":"https://github.com/lovell/sharp/issues/178","id":60081735,"number":178,"title":"npm install / build error \"../src/utilities.cc: In function ‘v8::Handle<v8::Value> format(const v8::Arguments&)’:\"","user":{"login":"jiivonen","id":2620356,"avatar_url":"https://avatars.githubusercontent.com/u/2620356?v=3","gravatar_id":"","url":"https://api.github.com/users/jiivonen","html_url":"https://github.com/jiivonen","followers_url":"https://api.github.com/users/jiivonen/followers","following_url":"https://api.github.com/users/jiivonen/following{/other_user}","gists_url":"https://api.github.com/users/jiivonen/gists{/gist_id}","starred_url":"https://api.github.com/users/jiivonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiivonen/subscriptions","organizations_url":"https://api.github.com/users/jiivonen/orgs","repos_url":"https://api.github.com/users/jiivonen/repos","events_url":"https://api.github.com/users/jiivonen/events{/privacy}","received_events_url":"https://api.github.com/users/jiivonen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-06T10:02:38Z","updated_at":"2015-04-23T16:03:01Z","closed_at":"2015-03-06T10:45:25Z","body":"Hello,\r\n\r\nI'm trying to install sharp on a CentOS 6.6 machine. What I can see the preinstall script went thru ok.\r\nBut installing the sharp fails with following:\r\n```\r\n> sharp@0.9.3 install /tmp/sharptest/node_modules/sharp\r\n> node-gyp rebuild\r\n\r\nmake: Entering directory /tmp/sharptest/node_modules/sharp/build\r\n  CXX(target) Release/obj.target/sharp/src/common.o\r\n  CXX(target) Release/obj.target/sharp/src/utilities.o\r\n../src/utilities.cc: In function ‘v8::Handle<v8::Value> format(const v8::Arguments&)’:\r\n../src/utilities.cc:99: error: expected initializer before ‘:’ token\r\n../src/utilities.cc:99: error: expected primary-expression before ‘)’ token\r\n../src/utilities.cc:99: error: expected ‘;’ before ‘)’ token\r\n../src/utilities.cc:103: error: ‘f’ was not declared in this scope\r\nmake: *** [Release/obj.target/sharp/src/utilities.o] Error 1\r\nmake: Leaving directory `/tmp/sharptest/node_modules/sharp/build'\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)\r\ngyp ERR! System Linux 2.6.32-504.8.1.el6.x86_64\r\ngyp ERR! command \"node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /tmp/sharptest/node_modules/sharp\r\ngyp ERR! node -v v0.10.33\r\ngyp ERR! node-gyp -v v0.10.6\r\ngyp ERR! not ok \r\nnpm ERR! weird error 1\r\nnpm ERR! not ok code 0\r\n```"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/95634215","html_url":"https://github.com/lovell/sharp/issues/178#issuecomment-95634215","issue_url":"https://api.github.com/repos/lovell/sharp/issues/178","id":95634215,"user":{"login":"lovell","id":210965,"avatar_url":"https://avatars.githubusercontent.com/u/210965?v=3","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T16:03:01Z","updated_at":"2015-04-23T16:03:01Z","body":"@brianviveiros The `utilities.cc:99: error: expected initializer before ‘:’ token` error is the C++ compiler's way of saying it can't handle the use of a \"range-based for loop\".\r\n\r\nSupport for this feature was added in [gcc 4.6](https://gcc.gnu.org/gcc-4.6/changes.html#cplusplus).\r\n\r\nCould something have set the `CXX` environment variable to override the version you think is in use?"}}