Ubuntu下的Node leveldown:require上的未定义符号错误

时间:2013-12-13 16:15:22

标签: node.js leveldb

我在Ubuntu 12.04下安装了nvm节点v0.11.9和leveldown@0.10.2(编译时没有警告),但是当我尝试加载leveldown时出现以下错误:

$ node
> require ('leveldown')
Error: /home/direvius/learn/leveldb/node_modules/leveldown/build/Release/leveldown.node: undefined symbol: _ZN4node12MakeCallbackEN2v86HandleINS0_6ObjectEEENS1_INS0_8FunctionEEEiPNS1_INS0_5ValueEEE
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)
    at Module.require (module.js:357:17)
    at require (module.js:373:17)
    at bindings (/home/direvius/learn/leveldb/node_modules/leveldown/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/home/direvius/learn/leveldb/node_modules/leveldown/index.js:1:99)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)

1 个答案:

答案 0 :(得分:1)

解决方法:使用node v0.10.x

我在github上打开了一个问题:https://github.com/rvagg/node-leveldown/issues/83