JoshKaufman / ursa

URSA - RSA public/private key OpenSSL bindings for Node.js
Other
619 stars 135 forks source link

Install failed on CentOS 6.8, Nodejs 4.5.0 #148

Open truongtrongthe opened 8 years ago

truongtrongthe commented 8 years ago

I'm on CentOS 6.8, running Nodejs 4.5.0

I meet an issue with message:

ursa@0.9.4 install /node_modules/ursa node-gyp rebuild

make: Entering directory /node_modules/ursa/build' CXX(target) Release/obj.target/ursaNative/src/ursaNative.o make: g++: Command not found make: *** [Release/obj.target/ursaNative/src/ursaNative.o] Error 127 make: Leaving directory/node_modules/ursa/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 2.6.32-642.4.2.el6.x86_64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /node_modules/ursa gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm ERR! Linux 2.6.32-642.4.2.el6.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "ursa" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! code ELIFECYCLE

npm ERR! ursa@0.9.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ursa@0.9.4 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the ursa package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs ursa npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls ursa npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /npm-debug.log

quartzjer commented 7 years ago

I'm looking for a new maintainer: https://github.com/quartzjer/ursa#maintainer-needed

davedoesdev commented 7 years ago

@truongtrongthe do you have g++ installed on your machine?

truongtrongthe commented 7 years ago

@davedoesdev: yes I have g++ installed. After trying to install ursa again:

ursa@0.9.4 install /home/az/node_modules/ursa node-gyp rebuild

make: Entering directory /home/az/node_modules/ursa/build' CXX(target) Release/obj.target/ursaNative/src/ursaNative.o In file included from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler In file included from /root/.node-gyp/4.5.0/include/node/node.h:42, from ../src/ursaNative.h:9, from ../src/ursaNative.cc:3: /root/.node-gyp/4.5.0/include/node/v8.h:336: error: expected unqualified-id before 'using' /root/.node-gyp/4.5.0/include/node/v8.h: In constructor 'v8::MaybeLocal<T>::MaybeLocal()': /root/.node-gyp/4.5.0/include/node/v8.h:353: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::IsEmpty() const': /root/.node-gyp/4.5.0/include/node/v8.h:360: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const': /root/.node-gyp/4.5.0/include/node/v8.h:364: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: In member function 'bool v8::WeakCallbackInfo<T>::IsFirstPass() const': /root/.node-gyp/4.5.0/include/node/v8.h:430: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: At global scope: /root/.node-gyp/4.5.0/include/node/v8.h:469: error: expected unqualified-id before 'using' /root/.node-gyp/4.5.0/include/node/v8.h: In constructor 'v8::Global<T>::Global()': /root/.node-gyp/4.5.0/include/node/v8.h:790: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: In constructor 'v8::Global<T>::Global(v8::Global<T>&&)': /root/.node-gyp/4.5.0/include/node/v8.h:815: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: In member function 'v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)': /root/.node-gyp/4.5.0/include/node/v8.h:827: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: At global scope: /root/.node-gyp/4.5.0/include/node/v8.h:852: error: expected unqualified-id before 'using' /root/.node-gyp/4.5.0/include/node/v8.h:1089: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h:1095: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: In member function 'v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const': /root/.node-gyp/4.5.0/include/node/v8.h:3205: error: 'nullptr' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h: In member function 'v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()': /root/.node-gyp/4.5.0/include/node/v8.h:7164: error: 'nullptr' was not declared in this scope In file included from ../node_modules/nan/nan.h:190, from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan_maybe_43_inl.h: At global scope: ../node_modules/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before 'using' ../node_modules/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before 'using' ../node_modules/nan/nan_maybe_43_inl.h:19: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:24: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:31: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:36: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:41: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:46: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:51: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:59: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:64: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:69: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:76: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:83: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:91: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:98: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:108: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:114: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:118: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:125: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:130: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:135: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:139: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:145: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:150: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:156: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:162: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:168: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:174: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:180: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:186: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:194: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:201: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:205: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:209: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:213: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:217: error: expected initializer before '<' token ../node_modules/nan/nan_maybe_43_inl.h:237: error: expected initializer before '<' token In file included from ../node_modules/nan/nan.h:195, from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan_converters.h:14: error: ISO C++ forbids declaration of 'MaybeLocal' with no type ../node_modules/nan/nan_converters.h:14: error: expected ';' before '<' token ../node_modules/nan/nan_converters.h:16: error: ISO C++ forbids declaration of 'Maybe' with no type ../node_modules/nan/nan_converters.h:16: error: expected ';' before '<' token ../node_modules/nan/nan_converters.h:26: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:27: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:28: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:29: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:30: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:31: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:32: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:42: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:43: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:44: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:45: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:46: error: 'return_t' does not name a type In file included from ../node_modules/nan/nan_converters.h:59, from ../node_modules/nan/nan.h:195, from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan_converters_43_inl.h:18: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Boolean>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:19: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Number>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:20: error: 'return_t' in class 'Nan::imp::ToFactory<v8::String>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:21: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Object>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:22: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Integer>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:23: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Uint32>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:24: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Int32>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:34: error: 'return_t' in class 'Nan::imp::ToFactory<bool>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:35: error: 'return_t' in class 'Nan::imp::ToFactory<double>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:36: error: 'return_t' in class 'Nan::imp::ToFactory<long int>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:37: error: 'return_t' in class 'Nan::imp::ToFactory<unsigned int>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:38: error: 'return_t' in class 'Nan::imp::ToFactory<int>' does not name a type In file included from ../node_modules/nan/nan.h:196, from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]': ../node_modules/nan/nan_new.h:21: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]': ../node_modules/nan/nan_new.h:28: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]': ../node_modules/nan/nan_new.h:35: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h: At global scope: ../node_modules/nan/nan_new.h:43: error: ISO C++ forbids declaration of 'MaybeLocal' with no type ../node_modules/nan/nan_new.h:43: error: expected ';' before '<' token ../node_modules/nan/nan_new.h:75: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:141: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:147: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:148: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:160: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:161: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:162: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:163: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:165: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:166: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:182: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:183: error: 'return_t' does not name a type In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:196, from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan_implementation_12_inl.h:61: error: 'return_t' in class 'Nan::imp::Factory<v8::Date>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)': ../node_modules/nan/nan_implementation_12_inl.h:95: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)': ../node_modules/nan/nan_implementation_12_inl.h:123: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: At global scope: ../node_modules/nan/nan_implementation_12_inl.h:202: error: 'return_t' in class 'Nan::imp::Factory<v8::RegExp>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:221: error: 'return_t' in class 'Nan::imp::Factory<v8::Script>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:227: error: 'return_t' in class 'Nan::imp::Factory<v8::Script>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:259: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:267: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:273: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:280: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:286: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:291: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:352: error: 'return_t' in class 'Nan::imp::Factory<v8::UnboundScript>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:359: error: 'return_t' in class 'Nan::imp::Factory<v8::UnboundScript>' does not name a type In file included from ../node_modules/nan/nan.h:196, from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan_new.h:293: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:299: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:305: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:311: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:317: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:323: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:329: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:335: error: 'return_t' in class 'Nan::imp::Factory<v8::RegExp>' does not name a type In file included from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)': ../node_modules/nan/nan.h:655: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowError(const char*)': ../node_modules/nan/nan.h:655: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)': ../node_modules/nan/nan.h:656: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)': ../node_modules/nan/nan.h:656: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)': ../node_modules/nan/nan.h:657: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)': ../node_modules/nan/nan.h:657: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)': ../node_modules/nan/nan.h:658: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)': ../node_modules/nan/nan.h:658: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)': ../node_modules/nan/nan.h:659: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)': ../node_modules/nan/nan.h:659: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:667: error: expected initializer before '<' token ../node_modules/nan/nan.h:689: error: expected initializer before '<' token ../node_modules/nan/nan.h:705: error: expected initializer before '<' token ../node_modules/nan/nan.h:718: error: expected initializer before '<' token ../node_modules/nan/nan.h:735: error: expected initializer before '<' token ../node_modules/nan/nan.h:741: error: expected initializer before '<' token ../node_modules/nan/nan.h:749: error: expected initializer before '<' token ../node_modules/nan/nan.h:756: error: expected initializer before '<' token ../node_modules/nan/nan.h:762: error: expected initializer before '<' token ../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)': ../node_modules/nan/nan.h:1507: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const': ../node_modules/nan/nan.h:1525: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()': ../node_modules/nan/nan.h:1559: error: no matching function for call to 'New(const char*)' ../node_modules/nan/nan.h: In function 'void Nan::imp::SetMethodAux(T, v8::Local<v8::String>, v8::Local<v8::FunctionTemplate>, ...)': ../node_modules/nan/nan.h:1870: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available ../node_modules/nan/nan.h:1870: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../node_modules/nan/nan.h: In function 'void Nan::SetMethod(HandleType<T>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))': ../node_modules/nan/nan.h:1882: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))': ../node_modules/nan/nan.h:1897: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)': ../node_modules/nan/nan.h:1922: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)': ../node_modules/nan/nan.h:1965: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2024: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2094: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2149: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2171: error: 'NewInstance' was not declared in this scope In file included from ../src/ursaNative.h:10, from ../src/ursaNative.cc:3: ../node_modules/nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))': ../node_modules/nan/nan.h:2198: error: no matching function for call to 'New(const char*&)' ../node_modules/nan/nan.h:2199: error: 'GetFunction' was not declared in this scope /root/.node-gyp/4.5.0/include/node/v8.h:3021: error: argument dependent lookup finds 'class v8::Set' ../node_modules/nan/nan.h:2199: error: in call to 'Set' ../node_modules/nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2206: error: no matching function for call to 'To(v8::Local<v8::Value>&)' ../node_modules/nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)': ../node_modules/nan/nan.h:2219: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'void Nan::Tap::pass(const char*)': ../node_modules/nan/nan.h:2225: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:2249: error: ISO C++ forbids declaration of 'MaybeLocal' with no type ../node_modules/nan/nan.h:2249: error: expected ';' before '<' token ../node_modules/nan/nan.h:2252: error: expected ';' before '}' token ../node_modules/nan/nan.h:2254: error: 'MaybeLocal' was not declared in this scope ../node_modules/nan/nan.h:2254: error: template argument 1 is invalid ../node_modules/nan/nan.h:2254: error: expected unqualified-id before '>' token ../node_modules/nan/nan.h:2263: error: expected constructor, destructor, or type conversion before '<' token ../src/ursaNative.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE bignumToBuffer(const Nan::FunctionCallbackInfo<v8::Value>&, BIGNUM*)': ../src/ursaNative.cc:103: error: 'NewBuffer' is not a member of 'Nan' ../src/ursaNative.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE bioToBuffer(const Nan::FunctionCallbackInfo<v8::Value>&, BIO*)': ../src/ursaNative.cc:130: error: 'NewBuffer' is not a member of 'Nan' ../src/ursaNative.cc: In static member function 'static void RsaWrap::InitClass(v8::Local<v8::Object>)': ../src/ursaNative.cc:313: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../src/ursaNative.cc:342: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../src/ursaNative.cc:345: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked' ../src/ursaNative.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PrivateDecrypt(const Nan::FunctionCallbackInfo<v8::Value>&)': ../src/ursaNative.cc:693: error: 'NewBuffer' is not a member of 'Nan' ../src/ursaNative.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PrivateEncrypt(const Nan::FunctionCallbackInfo<v8::Value>&)': ../src/ursaNative.cc:724: error: 'NewBuffer' is not a member of 'Nan' ../src/ursaNative.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PublicDecrypt(const Nan::FunctionCallbackInfo<v8::Value>&)': ../src/ursaNative.cc:786: error: 'NewBuffer' is not a member of 'Nan' ../src/ursaNative.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PublicEncrypt(const Nan::FunctionCallbackInfo<v8::Value>&)': ../src/ursaNative.cc:816: error: 'NewBuffer' is not a member of 'Nan' ../src/ursaNative.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::Sign(const Nan::FunctionCallbackInfo<v8::Value>&)': ../src/ursaNative.cc:941: error: 'NewBuffer' is not a member of 'Nan' ../src/ursaNative.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::AddPSSPadding(const Nan::FunctionCallbackInfo<v8::Value>&)': ../src/ursaNative.cc:1068: error: 'NewBuffer' is not a member of 'Nan' make: *** [Release/obj.target/ursaNative/src/ursaNative.o] Error 1 make: Leaving directory/home/az/node_modules/ursa/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 2.6.32-642.4.2.el6.x86_64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/az/node_modules/ursa gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm ERR! Linux 2.6.32-642.4.2.el6.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "ursa" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! code ELIFECYCLE

npm ERR! ursa@0.9.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ursa@0.9.4 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the ursa package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs ursa npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls ursa npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/az/npm-debug.log

davedoesdev commented 7 years ago

What does g++ --version say?

truongtrongthe commented 7 years ago

It's g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)

davedoesdev commented 7 years ago

I think you might need 4.9 (or above - I use 5.4) to get the C++ 11 features - worth a try if you can install it on your platform.