安装oracledb模块

时间:2016-07-31 14:31:37

标签: sql node.js linux oracle11g redhat

嗨, 我在Red Hat Linux服务器上运行节点4.4.2并在runnin g -

时出错
# npm install oracledb

我还下载并安装了instantclient rpm软件包,并将instantclient文件设置为environement变量。但我仍然无法安装oracledb模块。我试图将这个错误修复几乎一周,需要帮助!

python -V - 给我Python 2.6.6

g ++ -v - 给我 - build = x86_64-redhat-linux

线程模型:posix gcc版本4.4.6 20120305(Red Hat 4.4.6-4)(GCC) 错误日志如下所示 -

[root@VMINBDEPRDDB opt]# npm install oracledb -g
|
> oracledb@1.10.1 install /opt/node-v4.4.7-linux-x64/lib/node_modules/oracledb
> node-gyp rebuild

make: Entering directory `/opt/node-v4.4.7-linux-x64/lib/node_modules/oracledb/build'
  CXX(target) Release/obj.target/oracledb/src/njs/src/njsOracle.o
In file included from ../src/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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.4.7/include/node/node.h:42,
                 from ../src/njs/src/njsOracle.cpp:51:
/root/.node-gyp/4.4.7/include/node/v8.h:336: error: expected unqualified-id before âusingâ
/root/.node-gyp/4.4.7/include/node/v8.h: In constructor âv8::MaybeLocal<T>::MaybeLocal()â:
/root/.node-gyp/4.4.7/include/node/v8.h:353: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: In member function âbool v8::MaybeLocal<T>::IsEmpty() constâ:
/root/.node-gyp/4.4.7/include/node/v8.h:360: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: In member function âbool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) constâ:
/root/.node-gyp/4.4.7/include/node/v8.h:364: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: In member function âbool v8::WeakCallbackInfo<T>::IsFirstPass() constâ:
/root/.node-gyp/4.4.7/include/node/v8.h:430: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: At global scope:
/root/.node-gyp/4.4.7/include/node/v8.h:469: error: expected unqualified-id before âusingâ
/root/.node-gyp/4.4.7/include/node/v8.h: In constructor âv8::Global<T>::Global()â:
/root/.node-gyp/4.4.7/include/node/v8.h:790: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: In constructor âv8::Global<T>::Global(v8::Global<T>&&)â:
/root/.node-gyp/4.4.7/include/node/v8.h:815: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: In member function âv8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)â:
/root/.node-gyp/4.4.7/include/node/v8.h:827: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: At global scope:
/root/.node-gyp/4.4.7/include/node/v8.h:852: error: expected unqualified-id before âusingâ
/root/.node-gyp/4.4.7/include/node/v8.h:1089: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h:1095: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: In member function âv8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) constâ:
/root/.node-gyp/4.4.7/include/node/v8.h:3205: error: ânullptrâ was not declared in this scope
/root/.node-gyp/4.4.7/include/node/v8.h: In member function âv8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()â:
/root/.node-gyp/4.4.7/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/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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
/root/.node-gyp/4.4.7/include/node/v8.h: In member function âvoid Nan::Callback::SetFunction(const v8::Local<v8::Function>&)â:
/root/.node-gyp/4.4.7/include/node/v8.h:3021: error: argument dependent lookup finds âclass v8::Setâ
../node_modules/nan/nan.h:1398: error:   in call to âSetâ
../node_modules/nan/nan.h: In member function âvoid Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)â:
../node_modules/nan/nan.h:1518: 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:1536: 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:1570: 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:1872: 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:1872: 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:1884: error: âclass v8::Local<v8::Boolean>â has no d 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:1924: 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:1967: 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:2096: 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:2151: 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:2173: error: âNewInstanceâ was not declared in this scope
In file included from ../src/njs/src/njsOracle.h:56,
                 from ../src/njs/src/njsOracle.cpp:53:
../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:2200: error: no matching function for call to âNew(const char*&)â


../node_modules/nan/nan.h: In member function âvoid Nan::Tap::pass(const char*)â:
../node_modules/nan/nan.h:2227: error: âclass v8::Local<v8::Boolean>â has no member named âToLocalCheckedâ
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:2251: error: ISO C++ forbids declaration of âMaybeLocalâ with no type

../src/njs/src/njsConnection.h:423: error: expected â,â or â...â before â<â token
../src/njs/src/njsConnection.h:424: error: âHandleâ has not been declared
../src/njs/src/njsConnection.h:424: error: expected â,â or â...â before â<â token
../src/njs/src/njsConnection.h:424: error: âstatic void Connection::GetBinds(int)â cannot be overloaded

ed void     ../src/njs/src/njsOracle.cpp:146:错误:âHandleâ未在此范围内声明     ../src/njs/src/njsOracle.cpp:146:错误:在“令牌之前预期的主要表达式     ../src/njs/src/njsOracle.cpp:146:错误:âtargetâ未在此范围内声明     ../src/njs/src/njsOracle.cpp:静态成员函数âstaticNan:: NAN_GETTER_RETURN_TYPE Oracledb :: GetConnectionClass(v8 :: Local,const Nan :: PropertyCallbackInfo&amp;)â:     ../src/njs/src/njsOracle.cpp:558:错误:没有匹配函数来调用âNew(std :: string&amp;)â     ../src/njs/src/njsOracle.cpp:静态成员函数âstaticNan:: NAN_METHOD_RETURN_TYPE Oracledb :: GetConnection(const Nan :: FunctionCallbackInfo&amp;)â:     ../src/njs/src/njsOracle.cpp:770:错误:没有匹配函数来调用Oracledb :: Async_AfterCreatePool(uv_work_t *)â:     ../src/njs/src/njsOracle.cpp:1034:错误:没有匹配函数来调用âNew(std :: string&amp;)â     ../src/njs/src/njsOracle.cpp:在全球范围内:     ../src/njs/src/njsOracle.cpp:1074:错误:变量或字段âinitâ声明为void     ../src/njs/src/njsOracle.cpp:1074:错误:âHandleâ未在此范围内声明     ../src/njs/src/njsOracle.cpp:1074:错误:在“令牌之前预期的主要表达式     ../src/njs/src/njsOracle.cpp:1074:错误:âtargetâ未在此范围内声明     ../src/njs/src/njsOracle.cpp:1083:错误:âinitâ未在此范围内声明     ../src/njs/src/njsOracle.cpp:1083:错误:ânode::node_moduleâ的初始化程序太多     make:*** [发布/ obj.target / oracledb / src / njs / src / njsOracle.o]错误1     make:退出目录/opt/node-v4.4.7-linux-x64/lib/node_modules/oracledb/build' gyp ERR! build error gyp ERR! stack Error: make`失败,退出代码为:2     gyp ERR!在ChildProcess.onExit堆栈(/opt/node-v4.4.7-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)     gyp ERR!堆栈在emitTwo(events.js:87:13)     gyp ERR!在ChildProcess.emit堆栈(events.js:172:7)     gyp ERR! Process.ChildProcess._handle.onexit(internal / child_process.js:200:12)中的堆栈     gyp ERR!系统Linux 2.6.32-279.el6.x86_64     gyp ERR!命令“/opt/node-v4.4.7-linux-x64/bin/node”“/ opt / node-v4.4.7-linux-x64 / lib / node_modules / npm / node_modules / node -gyp / bin / node -gyp .js“”重建“     gyp ERR! cwd /opt/node-v4.4.7-linux-x64/lib/node_modules/oracledb     gyp ERR! node -v v4.4.7     gyp ERR! node-gyp -v v3.3.1     gyp ERR!不好     错误的ERR! Linux 2.6.32-279.el6.x86_64     错误的ERR! argv“/opt/node-v4.4.7-linux-x64/bin/node”“/ opt / node-v4.4.7-linux-x64 / bin / npm”“install”“oracledb”“ - g”     错误的ERR!节点v4.4.7     错误的ERR! npm v2.15.8     错误的ERR!代码ELIFECYCLE

npm ERR! oracledb@1.10.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the oracledb@1.10.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the oracledb 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 oracledb
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls oracledb
npm ERR! There is likely additional logging output above.

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

任何帮助都将非常感谢...

0 个答案:

没有答案