2017-09-23 77 views
0

我正在尝试安装ifx_db(节点模块连接到informix DB)。它在Windows中工作正常,但在Linux我收到以下错误。节点模块ifx_db安装在Linux中失败

/app/node_modules/ifx_db/node_modules/bindings/bindings.js:88 
     throw e 
     ^

Error: libthcli.so: cannot open shared object file: No such file or directory 
    at Error (native) 
    at Object.Module._extensions..node (module.js:597:18) 
    at Module.load (module.js:487:32) 
    at tryModuleLoad (module.js:446:12) 
    at Function.Module._load (module.js:438:3) 
    at Module.require (module.js:497:17) 
    at require (internal/module.js:20:19) 
    at bindings (/app/node_modules/ifx_db/node_modules/bindings/bindings.js:81:44) 
    at Object.<anonymous> (/app/node_modules/ifx_db/lib/odbc.js:29:31) 
    at Module._compile (module.js:570:32) 

请您对这个 由于输入事先

+0

libthcli.so安装显然缺少 –

+0

嗨,你好,谢谢你的回复...如何解决这个问题?我应该怎么做才能添加libthcli.so –

+0

我从来没有使用Informix,但我相信一个Informix安装应该安装libthcli。您以前是否安装过Informix? –

回答

0

FYI:
Informix的Node.js的驱动是依赖于的Informix客户端SDK版本4.10 XC2以上,你需要下载并单独安装。您可以选择最新版本,即Informix CSDK 4.10xC9。

ifx_db将成为唯一库的历史参考阅读,OpenInformix是新房;为Informix node.js的驱动程序的URL是
https://github.com/OpenInformix/IfxNode
的Informix的Node.js从OpenInformix可以通过

npm install ifxnjs