Skip to content

Can't install #26

@fiws

Description

@fiws
/
> node-dht-sensor@0.0.8 install /home/fiws/test/node_modules/node-dht-sensor
> ./check-bcm2835

Library bcm2835 found.
make: Entering directory '/home/fiws/test/node_modules/node-dht-sensor/build'
  CXX(target) Release/obj.target/node-dht-sensor/node-dht-sensor.o
  SOLINK_MODULE(target) Release/obj.target/node-dht-sensor.node
/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
/usr/local/lib/libbcm2835.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
node-dht-sensor.target.mk:110: recipe for target 'Release/obj.target/node-dht-sensor.node' failed
make: *** [Release/obj.target/node-dht-sensor.node] Error 1
make: Leaving directory '/home/fiws/test/node_modules/node-dht-sensor/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/fiws/npm/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 4.1.6-1-ARCH
gyp ERR! command "node" "/home/fiws/npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/fiws/test/node_modules/node-dht-sensor
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm ERR! Linux 4.1.6-1-ARCH
npm ERR! argv "node" "/home/fiws/npm/bin/npm" "install" "node-dht-sensor"
npm ERR! node v0.12.7
npm ERR! npm  v2.13.0
npm ERR! code ELIFECYCLE

npm ERR! node-dht-sensor@0.0.8 install: `./check-bcm2835`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-dht-sensor@0.0.8 install script './check-bcm2835'.
npm ERR! This is most likely a problem with the node-dht-sensor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./check-bcm2835
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-dht-sensor
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/fiws/test/npm-debug.log

I've tested with bcm2835 version 1.45, 1.44 and 1.5. All fail, but 1.5 has a different error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions