I'm using NodeJS v0.10.38 with node-oracle Driver "oracle": "^0.3.7" (https://github.com/joeferner/node-oracle) connected to oracle 11G database thought OCI driver.
export OCI_LIB_DIR=/usr/local/instantclient_11_2/
export OCI_INCLUDE_DIR=/usr/local/instantclient_11_2/sdk/include
export OCI_VERSION=11 # Integer. Optional, defaults to '11'
export NLS_LANG=.UTF8 # Optional, but required to support international characters
export DYLD_LIBRARY_PATH=$OCI_LIB_DIR
Everything is install and ok.
When runing node I only have one error :
[Error:
/home/pocho/ZaRaSoFt/node_modules/mongojs/node_modules/mongodb/node_modules/bson /build/Release/bson.node: invalid ELF header]
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
On executing oracle query, some queries return no results on random. Further tries of the same queries may return results.
答案 0 :(得分:0)
我不太确定,但我认为存在未解决的依赖关系,例如cpp扩展。
我建议在visual studio中使用开放式解决方案,它应该下载cpp扩展。