voodootikigod/node-serialport — Issue #38: Unable to load shared library ... serialport_native.node
Author: jeffhiltz
Created: 2012-02-12 02:42:09+00:00
State: open

I'm flummoxed. I think I have everything set up correctly, but I keep getting an error when I try to load the serialport module. (I'm using Ubuntu 11.10)

jeff@mega:/storage/projects/tempbrain$ npm rebuild serialport

> serialport@0.7.3 install /storage/projects/tempbrain/node_modules/serialport
> cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../

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 node path : ok /home/jeff/local/lib
Checking for node prefix : ok /home/jeff/local
'configure' finished successfully (0.213s)
Waf: Entering directory `/storage/projects/tempbrain/node_modules/serialport/serialport_native/build'
Waf: Leaving directory `/storage/projects/tempbrain/node_modules/serialport/serialport_native/build'
'build' finished successfully (0.054s)
serialport@0.7.3 /storage/projects/tempbrain/node_modules/serialport

jeff@mega:/storage/projects/tempbrain$ cat barebones.js
var serialport = require("serialport");

jeff@mega:/storage/projects/tempbrain$ node barebones.js

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Unable to load shared library /storage/projects/tempbrain/node_modules/serialport/serialport_native.node
at Object..node (module.js:463:11)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/storage/projects/tempbrain/node_modules/serialport/serialport.js:11:28)
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)

jeff@mega:/storage/projects/tempbrain$ node --version
v0.6.1

jeff@mega:/storage/projects/tempbrain$ npm --version
1.1.1

I'm not sure what else to try. Is there some other part of my environment that's not set up correctly? Any ideas would be greatly appreciated.