1

我在 Ubuntu 12.04 精确和 leveldown@0.10.2 下安装了节点 v0.11.9 和 nvm(编译时没有警告),但是当我尝试加载 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)
4

1 回答 1

1

解决方法:使用节点 v0.10.x

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

于 2013-12-18T13:01:18.213 回答