schakko/node-usb — Issue #6: Cannot find module 'usb_bindings'
Author: sank
Created: 2012-01-26 06:38:02+00:00
State: open

Hi,

I have tried installing the node-usb in my ubuntu11.04. I am getting following error "USB_BINDINGS" module not found. can you help me out on this subject.

root@ubuntu:/home/san# nodejs --version
v0.6.8
root@ubuntu:/home/san# cd node-usb/
root@ubuntu:/home/san/node-usb# make
node-waf configure clean build; nodejs tests/node-usb-test.js
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for node path : not found
Checking for node prefix : ok /usr
Checking for libusb-1.0 : yes
'configure' finished successfully (1.996s)
'clean' finished successfully (0.040s)
Waf: Entering directory `/home/san/node-usb/build'
[1/6] cxx: src/node_usb.cc -> build/Release/src/node_usb_1.o
[2/6] cxx: src/usb.cc -> build/Release/src/usb_1.o
[3/6] cxx: src/device.cc -> build/Release/src/device_1.o
[4/6] cxx: src/interface.cc -> build/Release/src/interface_1.o
[5/6] cxx: src/endpoint.cc -> build/Release/src/endpoint_1.o
[6/6] cxx_link: build/Release/src/node_usb_1.o build/Release/src/usb_1.o build/Release/src/device_1.o build/Release/src/interface_1.o build/Release/src/endpoint_1.o -> build/Release/usb_bindings.node
Waf: Leaving directory `/home/san/node-usb/build'
'build' finished successfully (6.181s)

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'usb_bindings'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/home/san/node-usb/usb.js:4:15)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
make: *** [make] Error 1
root@ubuntu:/home/san/node-usb#