Node.js ibm_db 在 CentOS 上安装错误

Node.js ibm_db installation error on CentOS

我正在使用 angular 和 nodeJS 制作一个简单的应用程序,需要连接到 DB2 才能访问一些程序。 nodeJS 服务器安装在 Centos 6.5 服务器机器上,但是当我尝试使用 npm 安装 ibm_db 时它显示某种错误,以

开头
{ [Error: Command failed: In file included from ../src/odbc.h:23,
                 from ../src/odbc.cpp:25:

并以某种 GYP 错误结束。

> gyp ERR! build error
> gyp ERR! stack Error: `make` failed with exit code: 2
> gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
> gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
> gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
> gyp ERR! System Linux 2.6.32-504.el6.x86_64
> gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IBM_DB_HOME=/var/www/html/m-siam/trunk/server/node_modules/ibm_db/installer/clidrive
> gyp ERR! cwd /var/www/html/m-siam/trunk/server/node_modules/ibm_db
> gyp ERR! node -v v0.10.36
> gyp ERR! node-gyp -v v0.10.6

gyp ERR! not ok

当我尝试 运行 nodeJS 服务器时,它显示 'could not load the bindings file' 错误。

如何正确安装此模块?我正在使用 nodeJS 0.10.36 并安装 ibm_db 版本 0.0.8(来自 package.json 的版本)和版本 0.0.10 导致相同的错误。

不知何故,我的同事能够在另一个 nodeJS 目录上安装 ibm_db 模块。可能是我app的目录装的太长了,我也不知道,只是把同事目录下的模块复制到自己的,现在完美运行了。