TooTallNate / node-lame

Node.js native bindings to libmp3lame & libmpg123
MIT License
567 stars 113 forks source link

Error: Could not locate the bindings file #36

Open darmie opened 10 years ago

darmie commented 10 years ago

Hi @TooTallNate , i am trying to use lame with icecast to stream live audio using Edcast. I was unable to run my node server file "Stream.js" I was getting this error

root@Darmie:/var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream# node stream.js

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Could not locate the bindings file. Tried:
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/build/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/build/Debug/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/build/Release/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/out/Debug/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/Debug/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/out/Release/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/Release/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/build/default/bindings.node
 → /var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/compiled/0.6.12/linux/x64/bindings.node
    at bindings (/var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/lib/bindings.js:1:99)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/var/www/vhosts/crimson/crimsonfm.com/httpdocs/stream/node_modules/lame/lib/decoder.js:7:15)
    at Module._compile (module.js:441:26)
ghost commented 9 years ago

Hey, I'm having the same issue here. What could be causing this?

EDIT: It turns out I was encountering this when running Node v0.6 on Raspberry Pi, which didn't seem to have support for node-gyp, which is required for running the build for the bindings. So no worries.

@darmie your issue might have been to do with the node version, or with node-gyp not having run on the bindings.gyp file in the node_modules/lame folder. Maybe try running that to build the bindings and try again.

EMCP commented 8 years ago

node v6 requires arm v7+ apparently, and my raspberry pi B+ is arm v6.

Recommend you close this.