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$ 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.