{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/1283","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/1283/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/1283/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/1283/events","html_url":"https://github.com/lovell/sharp/issues/1283","id":337249602,"node_id":"MDU6SXNzdWUzMzcyNDk2MDI=","number":1283,"title":"[Centos 6.9] Error during installation (unrecognized command line option \"-std=gnu++1y\")","user":{"login":"zhepa","id":9166849,"node_id":"MDQ6VXNlcjkxNjY4NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/9166849?v=4","gravatar_id":"","url":"https://api.github.com/users/zhepa","html_url":"https://github.com/zhepa","followers_url":"https://api.github.com/users/zhepa/followers","following_url":"https://api.github.com/users/zhepa/following{/other_user}","gists_url":"https://api.github.com/users/zhepa/gists{/gist_id}","starred_url":"https://api.github.com/users/zhepa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhepa/subscriptions","organizations_url":"https://api.github.com/users/zhepa/orgs","repos_url":"https://api.github.com/users/zhepa/repos","events_url":"https://api.github.com/users/zhepa/events{/privacy}","received_events_url":"https://api.github.com/users/zhepa/received_events","type":"User","site_admin":false},"labels":[{"id":52750126,"node_id":"MDU6TGFiZWw1Mjc1MDEyNg==","url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-30T23:13:01Z","updated_at":"2018-07-01T11:48:18Z","closed_at":null,"author_association":"NONE","body":"```bash\r\n> sharp@0.20.5 install /www/api/node_modules/sharp\r\n> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)\r\n\r\ninfo sharp Detected globally-installed libvips v8.6.4\r\ninfo sharp Building from source via node-gyp\r\nmake: Entering directory `/www/api/node_modules/sharp/build'\r\n  TOUCH Release/obj.target/libvips-cpp.stamp\r\n  CXX(target) Release/obj.target/sharp/src/common.o\r\ncc1plus: error: unrecognized command line option \"-std=gnu++1y\"\r\nmake: *** [Release/obj.target/sharp/src/common.o] Error 1\r\nmake: Leaving directory `/www/api/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/npm/node_modules/node-gyp/lib/build.js:258:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:182:13)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)\r\ngyp ERR! System Linux 2.6.32-042stab127.2\r\ngyp ERR! command \"/usr/bin/node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /www/api/node_modules/sharp\r\ngyp ERR! node -v v10.5.0\r\ngyp ERR! node-gyp -v v3.6.2\r\ngyp ERR! not ok\r\nnpm WARN web-api@1.0.0 No repository field.\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):\r\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! sharp@0.20.5 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the sharp@0.20.5 install script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2018-06-30T23_02_58_203Z-debug.log\r\n```\r\n\r\nI have gcc 4.8.2 installed:\r\n```bash\r\nUsing built-in specs.\r\nCOLLECT_GCC=gcc\r\nCOLLECT_LTO_WRAPPER=/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper\r\nTarget: x86_64-redhat-linux\r\nConfigured with: ../configure --prefix=/opt/rh/devtoolset-2/root/usr --mandir=/opt/rh/devtoolset-2/root/usr/share/man --infodir=/opt/rh/devtoolset-2/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/dev/shm/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install --with-cloog=/dev/shm/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install --with-mpc=/dev/shm/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\r\nThread model: posix\r\ngcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)\r\n```\r\n\r\nthere is a complete npm log https://gist.github.com/zhepa/a3296b169ac7d1005d643edd0f24c3ce"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/401601560","html_url":"https://github.com/lovell/sharp/issues/1283#issuecomment-401601560","issue_url":"https://api.github.com/repos/lovell/sharp/issues/1283","id":401601560,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTYwMTU2MA==","user":{"login":"zhepa","id":9166849,"node_id":"MDQ6VXNlcjkxNjY4NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/9166849?v=4","gravatar_id":"","url":"https://api.github.com/users/zhepa","html_url":"https://github.com/zhepa","followers_url":"https://api.github.com/users/zhepa/followers","following_url":"https://api.github.com/users/zhepa/following{/other_user}","gists_url":"https://api.github.com/users/zhepa/gists{/gist_id}","starred_url":"https://api.github.com/users/zhepa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhepa/subscriptions","organizations_url":"https://api.github.com/users/zhepa/orgs","repos_url":"https://api.github.com/users/zhepa/repos","events_url":"https://api.github.com/users/zhepa/events{/privacy}","received_events_url":"https://api.github.com/users/zhepa/received_events","type":"User","site_admin":false},"created_at":"2018-07-01T11:48:18Z","updated_at":"2018-07-01T11:48:18Z","author_association":"NONE","body":"@lovell same problem with `gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC)`\r\napparently i need to update"}}
{"actor":{"display_login":"zhepa"}}