Skip to content

install has errors #2

Description

@icekingcy

I follow your guide,but when i install pcduino there are errors!
please help me! thank you!

root@ubuntu:/home/ubuntu/nodejs# npm install pcduino --unsafe-perm --save
npm http GET https://registry.npmjs.org/pcduino
npm http 304 https://registry.npmjs.org/pcduino

pcduino@0.0.6 install /home/ubuntu/nodejs/node_modules/pcduino
node-gyp rebuild

gyp http GET http://nodejs.org/dist/v0.11.9/node-v0.11.9.tar.gz
gyp http 200 http://nodejs.org/dist/v0.11.9/node-v0.11.9.tar.gz
make: Entering directory /home/ubuntu/nodejs/node_modules/pcduino/build' CXX(target) Release/obj.target/node_pcduino_analog/src/node_pcduino_analog.o ../src/node_pcduino_analog.cc:1:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default] <command-line>:0:0: note: this is the location of the previous definition ../src/node_pcduino_analog.cc:7:33: error: ‘Arguments’ does not name a type ../src/node_pcduino_analog.cc:7:44: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] /root/.node-gyp/0.11.9/deps/v8/include/v8.h: In function ‘v8::Handle<v8::Value> analogWrite(const int&)’: /root/.node-gyp/0.11.9/deps/v8/include/v8.h:768:13: error: ‘v8::HandleScope::HandleScope()’ is private ../src/node_pcduino_analog.cc:8:15: error: within this context ../src/node_pcduino_analog.cc:10:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’ ../src/node_pcduino_analog.cc:15:16: error: invalid types ‘const int[int]’ for array subscript ../src/node_pcduino_analog.cc:15:40: error: invalid types ‘const int[int]’ for array subscript ../src/node_pcduino_analog.cc:20:21: error: invalid types ‘const int[int]’ for array subscript ../src/node_pcduino_analog.cc:21:23: error: invalid types ‘const int[int]’ for array subscript ../src/node_pcduino_analog.cc: At global scope: ../src/node_pcduino_analog.cc:28:32: error: ‘Arguments’ does not name a type ../src/node_pcduino_analog.cc:28:43: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] /root/.node-gyp/0.11.9/deps/v8/include/v8.h: In function ‘v8::Handle<v8::Value> analogRead(const int&)’: /root/.node-gyp/0.11.9/deps/v8/include/v8.h:768:13: error: ‘v8::HandleScope::HandleScope()’ is private ../src/node_pcduino_analog.cc:29:15: error: within this context ../src/node_pcduino_analog.cc:31:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’ ../src/node_pcduino_analog.cc:36:16: error: invalid types ‘const int[int]’ for array subscript ../src/node_pcduino_analog.cc:41:21: error: invalid types ‘const int[int]’ for array subscript ../src/node_pcduino_analog.cc:43:30: error: cannot convert ‘v8::Handle<v8::Value>’ to ‘int’ in initialization ../src/node_pcduino_analog.cc: In function ‘void Init(v8::Handle<v8::Object>)’: ../src/node_pcduino_analog.cc:54:40: error: no matching function for call to ‘v8::FunctionTemplate::New(<unresolved overloaded function type>)’ ../src/node_pcduino_analog.cc:54:40: note: candidate is: /root/.node-gyp/0.11.9/deps/v8/include/v8.h:3346:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int) /root/.node-gyp/0.11.9/deps/v8/include/v8.h:3346:34: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ ../src/node_pcduino_analog.cc:57:45: error: no matching function for call to ‘v8::FunctionTemplate::New(<unresolved overloaded function type>)’ ../src/node_pcduino_analog.cc:57:45: note: candidate is: /root/.node-gyp/0.11.9/deps/v8/include/v8.h:3346:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int) /root/.node-gyp/0.11.9/deps/v8/include/v8.h:3346:34: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ make: *** [Release/obj.target/node_pcduino_analog/src/node_pcduino_analog.o] Error 1 make: Leaving directory/home/ubuntu/nodejs/node_modules/pcduino/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:101:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:827:12)
gyp ERR! System Linux 3.4.29+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/nodejs/node_modules/pcduino
gyp ERR! node -v v0.11.9
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! pcduino@0.0.6 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pcduino@0.0.6 install script.
npm ERR! This is most likely a problem with the pcduino 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 their info via:
npm ERR! npm owner ls pcduino
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.4.29+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pcduino" "--unsafe-perm" "--save"
npm ERR! cwd /home/ubuntu/nodejs
npm ERR! node -v v0.11.9
npm ERR! npm -v 1.3.15
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ubuntu/nodejs/npm-debug.log
npm ERR! not ok code 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions