Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failure #21

Open
degenicus opened this issue Sep 14, 2017 · 1 comment
Open

Installation failure #21

degenicus opened this issue Sep 14, 2017 · 1 comment

Comments

@degenicus
Copy link

Hey, I am trying to install btle.js for my project:
sudo npm install btle.js

Outputs:

[email protected] install /home/rangubob/Documents/Code/JS/nodeble/node_modules/btle.js

CXXFLAGS='-fpermissive -fexceptions' node-gyp rebuild

make: Entering directory '/home/rangubob/Documents/Code/JS/nodeble/node_modules/btle.js/build'
CC(target) Release/obj.target/btle/src/btio.o
../src/btio.c:43:33: fatal error: bluetooth/bluetooth.h: No such file or directory
#include <bluetooth/bluetooth.h>
^
compilation terminated.
btle.target.mk:100: recipe for target 'Release/obj.target/btle/src/btio.o' failed
make: *** [Release/obj.target/btle/src/btio.o] Error 1
make: Leaving directory '/home/rangubob/Documents/Code/JS/nodeble/node_modules/btle.js/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.10.0-33-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/rangubob/Documents/Code/JS/nodeble/node_modules/btle.js
gyp ERR! node -v v6.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: CXXFLAGS='-fpermissive -fexceptions' node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/rangubob/.npm/_logs/2017-09-14T08_51_57_257Z-debug.log

Linux version (uname -a):
Linux rangubob-omat 4.10.0-33-generic #37-Ubuntu SMP Fri Aug 11 10:55:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
BlueZ version (bluetoothctl --version):
5.43
npm (npm --version):
5.3.0

@nclavaud
Copy link

Looks like libbluetooth-dev is needed:

sudo apt-get install libbluetooth-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants