ibm_db fails to install on CentOS 6.6

386 views
Skip to first unread message

Matt Harris

unread,
Feb 25, 2016, 3:57:46 AM2/25/16
to node-ibm_db
Hi,

I'm trying to install ibm_db on a CentOS 6.6 server. Below is the output of the module install command, node version, and the output of uname and gcc -v.

-bash-4.1$ npm install ibm_db
npm WARN package.json rate...@0.0.1-SNAPSHOT No repository field.
npm WARN package.json rate...@0.0.1-SNAPSHOT No README data
npm WARN package.json rate...@0.0.1-SNAPSHOT No license field.
npm WARN deprecated grace...@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
|
> ibm...@0.0.19 install /app/rates-api/releases/0.0.1-SNAPSHOT/node_modules/ibm_db
> node installer/driverInstall.js

Download and extraction of DB2 ODBC CLI Driver completed successfully ...
make: Entering directory `/app/rates-api/releases/0.0.1-SNAPSHOT/node_modules/ibm_db/build'
  CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
make: Leaving directory `/app/rates-api/releases/0.0.1-SNAPSHOT/node_modules/ibm_db/build'

{ [Error: Command failed: /bin/sh -c node-gyp configure build --IBM_DB_HOME=$IBM_DB_HOME --IS_DOWNLOADED=true
In file included from ../src/odbc.h:23,
                 from ../src/odbc.cpp:25:
../node_modules/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from ../src/odbc.cpp:19:

-bash-4.1$ node --version
v4.2.4

-bash-4.1$ npm --version
2.14.12

-bash-4.1$ uname -a
Linux node-server 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


-bash-4.1$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)

Thanks for any help you can provide. I have another server with node 0.12.4. ibm_db installs successfully there.

Justin Johnson

unread,
Feb 25, 2016, 1:27:00 PM2/25/16
to node-ibm_db
See this issue:

https://github.com/nodejs/nan/issues/448

It looks like your gcc is a few versions behind -

Perhaps this is your issue?
Reply all
Reply to author
Forward
0 new messages