我按照为 Node.js安装SQLite的说明进行操作:
apt-get install sqlite3
apt-get install libsqlite3-dev
npm install sqlite3
仍然,代码
var db = new require('sqlite3').verbose().Database('database.db');
导致错误消息:
./node: symbol lookup error: /root/together2/node_modules/sqlite3/lib/sqlite3_bindings.node: undefined symbol: _ZN2v814ObjectTemplate11SetAccessorENS_6HandleINS_6StringEEEPFNS1_INS_5ValueEEENS_5LocalIS2_EERKNS_12AccessorInfoEEPFvS7_NS6_IS4_EESA_ES5_NS_13AccessControlENS_17PropertyAttributeE
该系统是:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
谁能解释我在这里错过了什么?