Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install error on Opensuse - something with make? #250

Closed
igregma opened this issue Jan 12, 2014 · 2 comments
Closed

Install error on Opensuse - something with make? #250

igregma opened this issue Jan 12, 2014 · 2 comments

Comments

@igregma
Copy link

igregma commented Jan 12, 2014

Hi there!

I have problems installing pm2 on my openSuSE 12.3
node -v
v0.10.20
npm -v
1.3.11

Looks like trouble with make?! Here comes the output... hope you've an idea how to fix that?

npm install -g pm2
npm http GET https://registry.npmjs.org/pm2
npm http 304 https://registry.npmjs.org/pm2
npm http GET https://registry.npmjs.org/pm2-multimeter/0.1.2
npm http GET https://registry.npmjs.org/pm2-interface/0.1.0
npm http GET https://registry.npmjs.org/usage/0.3.9
npm http GET https://registry.npmjs.org/watch/0.8.0
npm http GET https://registry.npmjs.org/axon-rpc/0.0.2
npm http GET https://registry.npmjs.org/axon/1.0.0
npm http GET https://registry.npmjs.org/cron/1.0.1
npm http GET https://registry.npmjs.org/colors/0.6.2
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/eventemitter2/0.4.13
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/commander/2.1.0
npm http GET https://registry.npmjs.org/async/0.2.9
npm http GET https://registry.npmjs.org/cli-table/0.2.0
npm http 304 https://registry.npmjs.org/pm2-multimeter/0.1.2
npm http 304 https://registry.npmjs.org/pm2-interface/0.1.0
npm http 304 https://registry.npmjs.org/axon-rpc/0.0.2
npm http 304 https://registry.npmjs.org/usage/0.3.9
npm http 304 https://registry.npmjs.org/watch/0.8.0
npm http 304 https://registry.npmjs.org/cron/1.0.1
npm http 304 https://registry.npmjs.org/axon/1.0.0
npm http 304 https://registry.npmjs.org/colors/0.6.2
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/eventemitter2/0.4.13
npm http 304 https://registry.npmjs.org/commander/2.1.0
npm http 304 https://registry.npmjs.org/async/0.2.9
npm http 304 https://registry.npmjs.org/cli-table/0.2.0
npm http GET https://registry.npmjs.org/commander/1.0.5
npm http GET https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/colors/0.3.0
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/configurable/0.0.1
npm http GET https://registry.npmjs.org/escape-regexp/0.0.1
npm http 304 https://registry.npmjs.org/commander/1.0.5
npm http 304 https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/colors/0.3.0
npm http 304 https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/configurable/0.0.1

[email protected] install /usr/lib/node_modules/pm2/node_modules/usage
node-gyp rebuild

npm http 304 https://registry.npmjs.org/escape-regexp/0.0.1
npm http 304 https://registry.npmjs.org/keypress
make: Entering directory /usr/lib/node_modules/pm2/node_modules/usage/build' CXX(target) Release/obj.target/sysinfo/src/binding.o In file included from /usr/include/node/node.h:67:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/include/node/node_object_wrap.h: In destructor âvirtual node::ObjectWrap::~ObjectWrap()â: /usr/include/node/node_object_wrap.h:51:14: error: base operand of â->â has non-pointer type âv8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >â /usr/include/node/node_object_wrap.h: In static member function âstatic T* node::ObjectWrap::Unwrap(v8::Handle<v8::Object>)â: /usr/include/node/node_object_wrap.h:62:36: error: âclass v8::Objectâ has no member named âGetPointerFromInternalFieldâ /usr/include/node/node_object_wrap.h: In member function âvoid node::ObjectWrap::Wrap(v8::Handle<v8::Object>)â: /usr/include/node/node_object_wrap.h:72:53: error: no matching function for call to âv8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >::New(v8::Handle<v8::Object>&)â /usr/include/node/node_object_wrap.h:72:53: note: candidate is: In file included from /usr/include/node/node.h:62:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/include/v8.h:5591:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>] /usr/include/v8.h:5591:4: note: candidate expects 2 arguments, 1 provided In file included from /usr/include/node/node.h:67:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/include/node/node_object_wrap.h:73:12: error: base operand of â->â has non-pointer type âv8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >â /usr/include/node/node_object_wrap.h: In member function âvoid node::ObjectWrap::MakeWeak()â: /usr/include/node/node_object_wrap.h:79:40: error: invalid conversion from âvoid (*)(v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >, void*)â to âv8::WeakReferenceCallbacks<v8::Object, node::ObjectWrap, v8::NonCopyablePersistentTraits<v8::Object> >::Revivable {aka void (*)(v8::Isolate*, v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >*, node::ObjectWrap*)}â [-fpermissive] In file included from /usr/include/node/node.h:62:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/include/v8.h:5709:6: error: initializing argument 2 of âvoid v8::Persistent<T, M>::MakeWeak(P*, typename v8::WeakReferenceCallbacks<T, P>::Revivable) [with P = node::ObjectWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename v8::WeakReferenceCallbacks<T, P>::Revivable = void (*)(v8::Isolate*, v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >*, node::ObjectWrap*)]â [-fpermissive] /usr/include/v8.h: In static member function âstatic void node::ObjectWrap::WeakCallback(v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >, void*)â: /usr/include/v8.h:768:13: error: âv8::HandleScope::HandleScope()â is private In file included from /usr/include/node/node.h:67:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/include/node/node_object_wrap.h:115:21: error: within this context In file included from ../src/binding.h:1:0, from ../src/binding.cpp:1: /usr/include/node/node.h: At global scope: /usr/include/node/node.h:113:13: error: âv8::InvocationCallbackâ has not been declared /usr/include/node/node.h: In function âvoid node::SetMethod(target_t, const char*, int)â: /usr/include/node/node.h:116:43: error: no matching function for call to âv8::FunctionTemplate::New(int&)â /usr/include/node/node.h:116:43: note: candidate is: In file included from /usr/include/node/node.h:62:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/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) <near match> /usr/include/v8.h:3346:34: note: no known conversion for argument 1 from âintâ to âv8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}â In file included from ../src/binding.h:1:0, from ../src/binding.cpp:1: /usr/include/node/node.h: At global scope: /usr/include/node/node.h:121:31: error: âv8::InvocationCallbackâ has not been declared /usr/include/node/node.h: In function âvoid node::SetPrototypeMethod(target_t, const char*, int)â: /usr/include/node/node.h:123:79: error: no matching function for call to âv8::FunctionTemplate::New(int&)â /usr/include/node/node.h:123:79: note: candidate is: In file included from /usr/include/node/node.h:62:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/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) <near match> /usr/include/v8.h:3346:34: note: no known conversion for argument 1 from âintâ to âv8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}â In file included from ../src/binding.h:1:0, from ../src/binding.cpp:1: /usr/include/node/node.h: In function âv8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >* node::cb_persist(const v8::Local<v8::Value>&)â: /usr/include/node/node.h:156:75: error: no matching function for call to âv8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >::New(v8::Local<v8::Function>)â /usr/include/node/node.h:156:75: note: candidate is: In file included from /usr/include/node/node.h:62:0, from ../src/binding.h:1, from ../src/binding.cpp:1: /usr/include/v8.h:5591:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::Function; M = v8::NonCopyablePersistentTraits<v8::Function>] /usr/include/v8.h:5591:4: note: candidate expects 2 arguments, 1 provided In file included from ../src/binding.h:1:0, from ../src/binding.cpp:1: /usr/include/node/node.h: In function âv8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >* node::cb_unwrap(void*)â: /usr/include/node/node.h:163:3: error: base operand of â->â has non-pointer type âv8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >â make: *** [Release/obj.target/sysinfo/src/binding.o] Fehler 1 make: Leaving directory/usr/lib/node_modules/pm2/node_modules/usage/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib64/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.7.10-1.24-default
gyp ERR! command "node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/pm2/node_modules/usage
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

@Unitech
Copy link
Owner

Unitech commented Jan 14, 2014

@soyuka
Copy link
Collaborator

soyuka commented Apr 13, 2014

#221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants