{"action":"created","issue":{"url":"https://api.github.com/repos/osmcode/node-osmium/issues/86","repository_url":"https://api.github.com/repos/osmcode/node-osmium","labels_url":"https://api.github.com/repos/osmcode/node-osmium/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/osmcode/node-osmium/issues/86/comments","events_url":"https://api.github.com/repos/osmcode/node-osmium/issues/86/events","html_url":"https://github.com/osmcode/node-osmium/issues/86","id":169335720,"number":86,"title":"basic installation and working","user":{"login":"gagan-bansal","id":3140578,"avatar_url":"https://avatars.githubusercontent.com/u/3140578?v=3","gravatar_id":"","url":"https://api.github.com/users/gagan-bansal","html_url":"https://github.com/gagan-bansal","followers_url":"https://api.github.com/users/gagan-bansal/followers","following_url":"https://api.github.com/users/gagan-bansal/following{/other_user}","gists_url":"https://api.github.com/users/gagan-bansal/gists{/gist_id}","starred_url":"https://api.github.com/users/gagan-bansal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagan-bansal/subscriptions","organizations_url":"https://api.github.com/users/gagan-bansal/orgs","repos_url":"https://api.github.com/users/gagan-bansal/repos","events_url":"https://api.github.com/users/gagan-bansal/events{/privacy}","received_events_url":"https://api.github.com/users/gagan-bansal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false},"assignees":[{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-08-04T09:52:49Z","updated_at":"2016-08-04T22:43:10Z","closed_at":null,"body":"I installed using command\r\n```npm install osmium```\r\non my CentOS 7.x and it got installed without any error. Got message like this\r\n```\r\n> node-pre-gyp install --fallback-to-build\r\n\r\n[osmium] Success: \"/home/gaganb/myproject/node_modules/osmium/lib/binding/osmium.node\" is installed via remote\r\nmyproject@1.0.0 /home/gaganb/myproject\r\n└─┬ osmium@0.5.2\r\n    and many more\r\n```\r\nWhen I use in node.js I got an error as follows:\r\n```\r\n> var osm = require('osmium')\r\nError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/gaganb/myproject/node_modules/osmium/lib/binding/osmium.node)\r\n    at Error (native)\r\n    at Object.Module._extensions..node (module.js:568:18)\r\n    at Module.load (module.js:458:32)\r\n    at tryModuleLoad (module.js:417:12)\r\n    at Function.Module._load (module.js:409:3)\r\n    at Module.require (module.js:468:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (/home/gaganb/myproject/node_modules/osmium/lib/osmium.js:4:14)\r\n    at Module._compile (module.js:541:32)\r\n    at Object.Module._extensions..js (module.js:550:10)\r\n```\r\nHere is g++ -v output:\r\n```\r\n> [gaganb@localhost myproject]$ g++ -v\r\nUsing built-in specs.\r\nCOLLECT_GCC=g++\r\nCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper\r\nTarget: x86_64-redhat-linux\r\nConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/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 --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux\r\nThread model: posix\r\ngcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)\r\n```\r\n\r\nAm I doing some very basic mistake?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/osmcode/node-osmium/issues/comments/237705510","html_url":"https://github.com/osmcode/node-osmium/issues/86#issuecomment-237705510","issue_url":"https://api.github.com/repos/osmcode/node-osmium/issues/86","id":237705510,"user":{"login":"henningvs","id":5406293,"avatar_url":"https://avatars.githubusercontent.com/u/5406293?v=3","gravatar_id":"","url":"https://api.github.com/users/henningvs","html_url":"https://github.com/henningvs","followers_url":"https://api.github.com/users/henningvs/followers","following_url":"https://api.github.com/users/henningvs/following{/other_user}","gists_url":"https://api.github.com/users/henningvs/gists{/gist_id}","starred_url":"https://api.github.com/users/henningvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henningvs/subscriptions","organizations_url":"https://api.github.com/users/henningvs/orgs","repos_url":"https://api.github.com/users/henningvs/repos","events_url":"https://api.github.com/users/henningvs/events{/privacy}","received_events_url":"https://api.github.com/users/henningvs/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T22:43:10Z","updated_at":"2016-08-04T22:43:10Z","body":"I had the same issue lately. It worked for me after doing \r\n```\r\nsudo apt-add-repository --yes ppa:ubuntu-toolchain-r/test\r\nsudo apt-get -y update\r\nsudo apt-get -y install gcc-4.8 g++-4.8 build-essential \r\nsudo apt-get -y install libboost-dev zlib1g-dev libexpat1-dev libsparsehash-dev\r\n```\r\nI guess it might be different on CentOS but it seems a problem with not installed dependencies."}}
{"actor":{"display_login":"henningvs"}}