foo@foo.com > npm install ibm_db
> ibm_db@2.2.1 install /foo/node_modules/ibm_db
> node installer/driverInstall.js
Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz...
100.00% | 18703240 bytes downloaded out of 18703240 bytes.
****************************************
You are downloading a package which includes the Node.js module for IBM DB2/Informix. The module is licensed under the Apache License 2.0. The package also includes IBM ODBC and CLI Driver from IBM, which is automatically downloaded as the node module is installed on your system/device. The license agreement to the IBM ODBC and CLI Driver is available in undefined Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your acceptance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your device.
****************************************
Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...
make: Entering directory `/brandon/fs-loyalty-platform/node_modules/ibm_db/build'
CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
make: Leaving directory `/brandon/fs-loyalty-platform/node_modules/ibm_db/build'
{ Error: Command failed: node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"
In file included from ../src/odbc.h:23,
from ../src/odbc.cpp:25:
../../nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83,
from /home/brandon/.node-gyp/8.9.1/include/node/v8.h:21,
from ../src/odbc.cpp:19:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti
In file included from ../src/odbc.cpp:19:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:333: error: expected unqualified-id before ‘using’
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:350: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:357: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:365: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:394: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal(v8::Isolate*, v8::Local<S>)’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:396: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::Eternal<T>::IsEmpty() const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:401: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:441: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:775: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:800: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:812: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:838: error: expected unqualified-id before ‘using’
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:1187: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:1193: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::RegisterState::RegisterState()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:1733: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:3198: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:3839: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4108: error: function definition does not declare parameters
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4164: error: expected unqualified-id before ‘&’ token
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4164: error: expected ‘)’ before ‘&’ token
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4164: error: expected ‘;’ before ‘&’ token
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ostream_insert.h:36,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:46,
from ../../nan/nan.h:61,
from ../src/odbc.h:23,
from ../src/odbc.cpp:25:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘;’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘}’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected unqualified-id before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘}’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected declaration before end of line
make: *** [Release/obj.target/odbc_bindings/src/odbc.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/brandon/node-v8.9.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 2.6.32-696.13.2.el6.x86_64
gyp ERR! command "/brandon/node-v8.9.1-linux-x64/bin/node" "/brandon/node-v8.9.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IS_DOWNLOADED=true" "--IBM_DB_HOME=/brandon/fs-loyalty-platform/node_modules/ibm_db/installer/clidriver"
gyp ERR! cwd /brandon/fs-loyalty-platform/node_modules/ibm_db
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
killed: false,
code: 1,
signal: null,
cmd: 'node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db@2.2.1 install: `node installer/driverInstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ibm_db@2.2.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Your compiler is too old. Switch to g++ >= 4.8.5 and it should work. That’s not specific to this module, by the way.