{"action":"created","issue":{"url":"https://api.github.com/repos/momenso/node-dht-sensor/issues/26","labels_url":"https://api.github.com/repos/momenso/node-dht-sensor/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/momenso/node-dht-sensor/issues/26/comments","events_url":"https://api.github.com/repos/momenso/node-dht-sensor/issues/26/events","html_url":"https://github.com/momenso/node-dht-sensor/issues/26","id":103783353,"number":26,"title":"Can't install","user":{"login":"fiws","id":3409958,"avatar_url":"https://avatars.githubusercontent.com/u/3409958?v=3","gravatar_id":"","url":"https://api.github.com/users/fiws","html_url":"https://github.com/fiws","followers_url":"https://api.github.com/users/fiws/followers","following_url":"https://api.github.com/users/fiws/following{/other_user}","gists_url":"https://api.github.com/users/fiws/gists{/gist_id}","starred_url":"https://api.github.com/users/fiws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiws/subscriptions","organizations_url":"https://api.github.com/users/fiws/orgs","repos_url":"https://api.github.com/users/fiws/repos","events_url":"https://api.github.com/users/fiws/events{/privacy}","received_events_url":"https://api.github.com/users/fiws/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-08-28T19:43:04Z","updated_at":"2016-02-02T11:27:35Z","closed_at":null,"body":"```\r\n/\r\n> node-dht-sensor@0.0.8 install /home/fiws/test/node_modules/node-dht-sensor\r\n> ./check-bcm2835\r\n\r\nLibrary bcm2835 found.\r\nmake: Entering directory '/home/fiws/test/node_modules/node-dht-sensor/build'\r\n  CXX(target) Release/obj.target/node-dht-sensor/node-dht-sensor.o\r\n  SOLINK_MODULE(target) Release/obj.target/node-dht-sensor.node\r\n/usr/bin/ld: /usr/local/lib/libbcm2835.a(bcm2835.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC\r\n/usr/local/lib/libbcm2835.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nnode-dht-sensor.target.mk:110: recipe for target 'Release/obj.target/node-dht-sensor.node' failed\r\nmake: *** [Release/obj.target/node-dht-sensor.node] Error 1\r\nmake: Leaving directory '/home/fiws/test/node_modules/node-dht-sensor/build'\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/home/fiws/npm/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 Linux 4.1.6-1-ARCH\r\ngyp ERR! command \"node\" \"/home/fiws/npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/fiws/test/node_modules/node-dht-sensor\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! Linux 4.1.6-1-ARCH\r\nnpm ERR! argv \"node\" \"/home/fiws/npm/bin/npm\" \"install\" \"node-dht-sensor\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.13.0\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! node-dht-sensor@0.0.8 install: `./check-bcm2835`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the node-dht-sensor@0.0.8 install script './check-bcm2835'.\r\nnpm ERR! This is most likely a problem with the node-dht-sensor package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     ./check-bcm2835\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls node-dht-sensor\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/fiws/test/npm-debug.log\r\n```\r\n\r\nI've tested with bcm2835 version 1.45, 1.44 and 1.5. All fail, but 1.5 has a different error."},"comment":{"url":"https://api.github.com/repos/momenso/node-dht-sensor/issues/comments/178518999","html_url":"https://github.com/momenso/node-dht-sensor/issues/26#issuecomment-178518999","issue_url":"https://api.github.com/repos/momenso/node-dht-sensor/issues/26","id":178518999,"user":{"login":"aziraphale","id":1239323,"avatar_url":"https://avatars.githubusercontent.com/u/1239323?v=3","gravatar_id":"","url":"https://api.github.com/users/aziraphale","html_url":"https://github.com/aziraphale","followers_url":"https://api.github.com/users/aziraphale/followers","following_url":"https://api.github.com/users/aziraphale/following{/other_user}","gists_url":"https://api.github.com/users/aziraphale/gists{/gist_id}","starred_url":"https://api.github.com/users/aziraphale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aziraphale/subscriptions","organizations_url":"https://api.github.com/users/aziraphale/orgs","repos_url":"https://api.github.com/users/aziraphale/repos","events_url":"https://api.github.com/users/aziraphale/events{/privacy}","received_events_url":"https://api.github.com/users/aziraphale/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T11:27:35Z","updated_at":"2016-02-02T11:27:35Z","body":"Yeah so I've just spent ages trying to get this to install, only to finally have it install by using @momenso's [method](https://github.com/momenso/node-dht-sensor/issues/26#issuecomment-169133502) - i.e. explicitly using node v0.12.6, from July 2015, rather than either v4.2.x LTS or v5.x Stable as downloaded from nodejs.org, or using whatever ships with Raspbian (Wheezy or Jessie). This is a huge pain in the arse, especially as this seems to also require the use of npm v2.11.2, which is similarly-old and really quite rubbish compared to newer releases.\r\n\r\nIs there any chance of getting this library updated to work with newer nodejs versions at some point? Sadly I'm not familiar enough with the lower-level elements of nodejs to be able to contribute usefully, but I'm happy to donate a bit, if that's an option?\r\n\r\nPersonally I would much rather add a dependency on WiringPi (#10) and then have things actually working and installing on a wider range of nodejs versions, than rely on the BCM library, which not only requires you to go and compile that completely separately from installing the library via npm, but may also be related to the failure to install on newer nodejs versions (I don't know if that's the case or not)..."}}