在centos上的Node-gyp构建和重建错误

时间:2015-03-17 02:32:48

标签: c++ node.js centos

尝试构建node-gyp build

时出现以下错误
  

node-gyp构建gyp信息,如果它以ok gyp info结尾使用,它可以工作   node-gyp@1.0.2 gyp info使用node@0.10.35 | linux | x64 gyp信息   spawn make gyp info spawn args ['BUILDTYPE = Release',' - C','build']   make:输入目录/root/node-latest-install/build'
CXX(target) Release/obj.target/binding/binding.o ../binding.cc:5: error: ISO C++ forbids declaration of ‘FunctionCallbackInfo’ with no type ../binding.cc:5: error: expected ‘,’ or ‘...’ before ‘<’ token ../binding.cc: In function ‘void Add(int)’: ../binding.cc:7: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate
*&)’ /root/.node-gyp/0.10.35/deps/v8/include/v8.h:473: note: candidates are: v8::HandleScope::HandleSco
pe(const v8::HandleScope&) /root/.node-gyp/0.10.35/deps/v8/include/v8.h:448: note:
v8::HandleScope::HandleSco pe() ../binding.cc:9: error: ‘args’ was not declared in this scope ../binding.cc:10: error: ‘class v8::Isolate’ has no member named ‘ThrowException’ ../binding.cc:11: error: ‘NewFromUtf8’ is not a member of ‘v8::String’ ../binding.cc:15: error: ‘args’ was not declared in this scope ../binding.cc:16: error: ‘class v8::Isolate’ has no member named ‘ThrowException’ ../binding.cc:17: error: ‘NewFromUtf8’ is not a member of ‘v8::String’ ../binding.cc:21: error: ‘args’ was not declared in this scope ../binding.cc:22: error: no matching function for call to ‘v8::Number::New(v8::Isolate*&, double&) ’ /root/.node-gyp/0.10.35/deps/v8/include/v8.h:1381: note: candidates are: static v8::Local<v8::Numb er> v8::Number::New(double) ../binding.cc: In function ‘void Init(v8::Handle<v8::Object>)’: ../binding.cc:28: error: no matching function for call to ‘SetMethod(v8::Handle<v8::Object>&, cons
t char [4], void (&)(int))’ make: *** [Release/obj.target/binding/binding.o] Error 1 make: Leaving directory
/ root / node-latest-install / build'gyp ERR!构建错误gyp ERR!堆   错误:make失败并退出代码:2 gyp ERR!堆栈在   ChildProcess.onExit   (/usr/local/lib/node_modules/node-gyp/lib/build.js:267:2
  3)gyp ERR!在ChildProcess.emit堆栈(events.js:98:17)gyp ERR!   在Process.ChildProcess._handle.onexit堆栈   (child_process.js:820:12)gyp ERR!系统Linux   2.6.32-504.3.3.el6.x86_64 gyp ERR!命令“node”“/ usr / local / bin / node-gyp”“build”gyp ERR! CWD   / root / node-latest-install gyp ERR! node -v v0.10.35 gyp ERR!节点GYP   -v v1.0.2 gyp ERR!不行

0 个答案:

没有答案