# cat /etc/issue
Oracle Linux Server release 6.3
Kernel \r on an \m
# npm install
> pty.js@0.3.1 install /usr/mtx/wetty/node_modules/pty.js
> node-gyp rebuild
make: Entering directory `/usr/mtx/wetty/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../src/unix/pty.cc:20:
../../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.6/../../../../include/c++/4.4.6/memory:83,
from /root/.node-gyp/8.4.0/include/node/v8.h:21,
from /root/.node-gyp/8.4.0/include/node/node.h:63,
from ../../nan/nan.h:47,
from ../src/unix/pty.cc:20:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/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.6/../../../../include/c++/4.4.6/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/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.6/../../../../include/c++/4.4.6/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/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.6/../../../../include/c++/4.4.6/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/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.6/../../../../include/c++/4.4.6/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti
In file included from /root/.node-gyp/8.4.0/include/node/node.h:63,
from ../../nan/nan.h:47,
from ../src/unix/pty.cc:20:
/root/.node-gyp/8.4.0/include/node/v8.h: At global scope:
/root/.node-gyp/8.4.0/include/node/v8.h:333: error: expected unqualified-id before ‘using’
/root/.node-gyp/8.4.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/root/.node-gyp/8.4.0/include/node/v8.h:350: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/root/.node-gyp/8.4.0/include/node/v8.h:357: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/root/.node-gyp/8.4.0/include/node/v8.h:365: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal()’:
/root/.node-gyp/8.4.0/include/node/v8.h:394: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal(v8::Isolate*, v8::Local<S>)’:
/root/.node-gyp/8.4.0/include/node/v8.h:396: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In member function ‘bool v8::Eternal<T>::IsEmpty() const’:
/root/.node-gyp/8.4.0/include/node/v8.h:401: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/root/.node-gyp/8.4.0/include/node/v8.h:441: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/root/.node-gyp/8.4.0/include/node/v8.h:775: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/root/.node-gyp/8.4.0/include/node/v8.h:800: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/root/.node-gyp/8.4.0/include/node/v8.h:812: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: At global scope:
/root/.node-gyp/8.4.0/include/node/v8.h:838: error: expected unqualified-id before ‘using’
/root/.node-gyp/8.4.0/include/node/v8.h:1143: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h:1149: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In constructor ‘v8::RegisterState::RegisterState()’:
/root/.node-gyp/8.4.0/include/node/v8.h:1689: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: At global scope:
/root/.node-gyp/8.4.0/include/node/v8.h:3154: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/root/.node-gyp/8.4.0/include/node/v8.h:3795: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/8.4.0/include/node/v8.h: At global scope:
/root/.node-gyp/8.4.0/include/node/v8.h:4064: error: function definition does not declare parameters
/root/.node-gyp/8.4.0/include/node/v8.h:4120: error: expected unqualified-id before ‘&’ token
/root/.node-gyp/8.4.0/include/node/v8.h:4120: error: expected ‘)’ before ‘&’ token
/root/.node-gyp/8.4.0/include/node/v8.h:4120: error: expected ‘;’ before ‘&’ token
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/ostream_insert.h:36,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/string:46,
from ../../nan/nan.h:61,
from ../src/unix/pty.cc:20:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cxxabi-forced.h:29: error: expected ‘;’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cxxabi-forced.h:29: error: expected ‘}’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cxxabi-forced.h:29: error: expected unqualified-id before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cxxabi-forced.h:29: error: expected ‘}’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cxxabi-forced.h:29: error: expected declaration before end of line
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory `/usr/mtx/wetty/node_modules/pty.js/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 2.6.39-200.24.1.el6uek.x86_64
gyp ERR! command "/usr/local/node/bin/node" "/usr/local/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/mtx/wetty/node_modules/pty.js
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pty.js@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js@0.3.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-09-08T03_29_58_269Z-debug.log
node -v
v8.4.0