Can't install package on Raspberry Pi
Hi all,
Just playing with a RPi, installed ZMQ, but sudo npm install zmq gives the following:
root@raspberrypi:/my/folder# sudo npm install zmq
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] Invalid filename in 'files' list:
-
> [email protected] install /my/folder/node_modules/zmq
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory '/my/folder/node_modules/zmq/build'
CXX(target) Release/obj.target/zmq/binding.o
In file included from ../binding.cc:36:0:
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*)’:
../node_modules/nan/nan.h:339:13: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowError(const char*)’:
../node_modules/nan/nan.h:343:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h:343:5: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowError(v8::Handle<v8::Value>)’:
../node_modules/nan/nan.h:348:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*, int)’:
../node_modules/nan/nan.h:355:53: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:357:14: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:357:65: error: no matching function for call to ‘v8::Int32::New(const int&)’
../node_modules/nan/nan.h:357:65: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanTypeError(const char*)’:
../node_modules/nan/nan.h:369:12: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowTypeError(const char*)’:
../node_modules/nan/nan.h:373:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h:373:5: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanRangeError(const char*)’:
../node_modules/nan/nan.h:377:12: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowRangeError(const char*)’:
../node_modules/nan/nan.h:381:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h:381:5: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In constructor ‘NanCallback::NanCallback()’:
../node_modules/nan/nan.h:727:49: error: no matching function for call to ‘v8::Object::New()’
../node_modules/nan/nan.h:727:49: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note: candidate expects 1 argument, 0 provided
../node_modules/nan/nan.h: In constructor ‘NanCallback::NanCallback(const v8::Handle<v8::Function>&)’:
../node_modules/nan/nan.h:733:49: error: no matching function for call to ‘v8::Object::New()’
../node_modules/nan/nan.h:733:49: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note: candidate expects 1 argument, 0 provided
../node_modules/nan/nan.h: In destructor ‘NanCallback::~NanCallback()’:
../node_modules/nan/nan.h:740:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Dispose’
../node_modules/nan/nan.h:741:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
../node_modules/nan/nan.h: In member function ‘void NanCallback::SetFunction(const v8::Handle<v8::Function>&)’:
../node_modules/nan/nan.h:746:39: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Function> NanCallback::GetFunction()’:
../node_modules/nan/nan.h:750:46: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:751:25: error: expected primary-expression before ‘>’ token
../node_modules/nan/nan.h:751:27: error: expected primary-expression before ‘)’ token
../node_modules/nan/nan.h: In member function ‘void NanCallback::Call(int, v8::Handle<v8::Value>*)’:
../node_modules/nan/nan.h:759:13: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:759:51: error: expected primary-expression before ‘>’ token
../node_modules/nan/nan.h:759:53: error: expected primary-expression before ‘)’ token
../node_modules/nan/nan.h:761:9: error: ‘GetCurrent’ is not a member of ‘v8::Context’
../node_modules/nan/nan.h: In member function ‘void NanAsyncWorker::SavePersistent(const char*, v8::Local<v8::Object>&)’:
../node_modules/nan/nan.h:808:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Object> NanAsyncWorker::GetFromPersistent(const char*)’:
../node_modules/nan/nan.h:815:24: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:815:53: error: expected primary-expression before ‘>’ token
../node_modules/nan/nan.h:815:55: error: expected primary-expression before ‘)’ token
../node_modules/nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’:
../node_modules/nan/nan.h:837:30: error: ‘New’ is not a member of ‘v8::String’
../binding.cc: In function ‘v8::Local<v8::Value> zmq::ExceptionFromError()’:
../binding.cc:184:29: error: ‘New’ is not a member of ‘v8::String’
../binding.cc: In static member function ‘static void zmq::Context::Initialize(v8::Handle<v8::Object>)’:
../binding.cc:195:58: error: no matching function for call to ‘v8::FunctionTemplate::New(void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’
../binding.cc:195:58: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455:34: note: no known conversion for argument 1 from ‘void(const v8::FunctionCallbackInfo<v8::Value>&)’ to ‘v8::Isolate*’
../binding.cc:200:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
../binding.cc: In static member function ‘static void zmq::Socket::Initialize(v8::Handle<v8::Object>)’:
../binding.cc:258:58: error: no matching function for call to ‘v8::FunctionTemplate::New(void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’
../binding.cc:258:58: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455:34: note: no known conversion for argument 1 from ‘void(const v8::FunctionCallbackInfo<v8::Value>&)’ to ‘v8::Isolate*’
../binding.cc:261:7: error: ‘NewSymbol’ is not a member of ‘v8::String’
../binding.cc:263:7: error: ‘NewSymbol’ is not a member of ‘v8::String’
../binding.cc:285:5: error: ‘NewSymbol’ is not a member of ‘v8::String’
../binding.cc:288:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
../binding.cc:290:5: error: ‘NewSymbol’ is not a member of ‘v8::String’
../binding.cc: In member function ‘void zmq::Socket::CallbackIfReady()’:
../binding.cc:343:81: error: no matching function for call to ‘MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, NULL)’
../binding.cc:343:81: note: candidates are:
/root/.node-gyp/0.12.1/src/node.h:119:35: note: v8::Handle<v8::Value> node::MakeCallback(v8::Isolate*, v8::Handle<v8::Object>, const char*, int, v8::Handle<v8::Value>*)
/root/.node-gyp/0.12.1/src/node.h:119:35: note: candidate expects 5 arguments, 4 provided
/root/.node-gyp/0.12.1/src/node.h:125:35: note: v8::Handle<v8::Value> node::MakeCallback(v8::Isolate*, v8::Handle<v8::Object>, v8::Handle<v8::String>, int, v8::Handle<v8::Value>*)
/root/.node-gyp/0.12.1/src/node.h:125:35: note: candidate expects 5 arguments, 4 provided
/root/.node-gyp/0.12.1/src/node.h:131:35: note: v8::Handle<v8::Value> node::MakeCallback(v8::Isolate*, v8::Handle<v8::Object>, v8::Handle<v8::Function>, int, v8::Handle<v8::Value>*)
/root/.node-gyp/0.12.1/src/node.h:131:35: note: candidate expects 5 arguments, 4 provided
../binding.cc: In member function ‘void zmq::Socket::MonitorEvent(uint16_t, int32_t, char*)’:
../binding.cc:365:57: error: no matching function for call to ‘v8::Integer::New(uint16_t&)’
../binding.cc:365:57: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc:366:60: error: no matching function for call to ‘v8::Integer::New(int32_t&)’
../binding.cc:366:60: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc:367:36: error: ‘New’ is not a member of ‘v8::String’
../binding.cc:376:81: error: no matching function for call to ‘MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value> [3])’
../binding.cc:376:81: note: candidates are:
/root/.node-gyp/0.12.1/src/node.h:119:35: note: v8::Handle<v8::Value> node::MakeCallback(v8::Isolate*, v8::Handle<v8::Object>, const char*, int, v8::Handle<v8::Value>*)
/root/.node-gyp/0.12.1/src/node.h:119:35: note: candidate expects 5 arguments, 4 provided
/root/.node-gyp/0.12.1/src/node.h:125:35: note: v8::Handle<v8::Value> node::MakeCallback(v8::Isolate*, v8::Handle<v8::Object>, v8::Handle<v8::String>, int, v8::Handle<v8::Value>*)
/root/.node-gyp/0.12.1/src/node.h:125:35: note: candidate expects 5 arguments, 4 provided
/root/.node-gyp/0.12.1/src/node.h:131:35: note: v8::Handle<v8::Value> node::MakeCallback(v8::Isolate*, v8::Handle<v8::Object>, v8::Handle<v8::Function>, int, v8::Handle<v8::Value>*)
/root/.node-gyp/0.12.1/src/node.h:131:35: note: candidate expects 5 arguments, 4 provided
../binding.cc: In static member function ‘static void zmq::Socket::GetState(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../binding.cc:482:5: error: no matching function for call to ‘v8::Integer::New(uint8_t&)’
../binding.cc:482:5: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc:482:5: error: return-statement with a value, in function returning 'void' [-fpermissive]
../binding.cc: In static member function ‘static void zmq::Socket::GetPending(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../binding.cc:488:5: error: no matching function for call to ‘v8::Integer::New(int32_t&)’
../binding.cc:488:5: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc:488:5: error: return-statement with a value, in function returning 'void' [-fpermissive]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int)’:
../binding.cc:506:49: error: there are no arguments to ‘ThrowException’ that depend on a template parameter, so a declaration of ‘ThrowException’ must be available [-fpermissive]
../binding.cc:506:49: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>)’:
../binding.cc:514:11: error: ‘New’ is not a member of ‘v8::String’
../binding.cc:514:51: error: there are no arguments to ‘ThrowException’ that depend on a template parameter, so a declaration of ‘ThrowException’ must be available [-fpermissive]
../binding.cc:517:49: error: there are no arguments to ‘ThrowException’ that depend on a template parameter, so a declaration of ‘ThrowException’ must be available [-fpermissive]
../binding.cc:518:22: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:6606:19: note: declared here
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = char*]’:
../binding.cc:526:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc:528:12: error: ‘New’ is not a member of ‘v8::String’
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = char*]’:
../binding.cc:535:11: error: ‘New’ is not a member of ‘v8::String’
../binding.cc:535:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc:539:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc:540:22: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:305:28: note: declared here
../binding.cc: In destructor ‘zmq::Socket::BindState::~BindState()’:
../binding.cc:603:16: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
../binding.cc:605:10: error: ‘class v8::Persistent<v8::Function>’ has no member named ‘Clear’
../binding.cc: In static member function ‘static void zmq::Socket::UV_BindAsyncAfter(uv_work_t*)’:
../binding.cc:651:34: error: ‘New’ is not a member of ‘v8::String’
../binding.cc:653:46: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:305:28: note: declared here
../binding.cc:666:18: error: ‘GetCurrent’ is not a member of ‘v8::Context’
../binding.cc: In static member function ‘static void zmq::Socket::UV_UnbindAsyncAfter(uv_work_t*)’:
../binding.cc:729:34: error: ‘New’ is not a member of ‘v8::String’
../binding.cc:731:46: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:305:28: note: declared here
../binding.cc:743:18: error: ‘GetCurrent’ is not a member of ‘v8::Context’
../binding.cc: In destructor ‘zmq::Socket::IncomingMessage::~IncomingMessage()’:
../binding.cc:826:16: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
../binding.cc: In static member function ‘static void zmq::Socket::Monitor(const v8::FunctionCallbackInfo<v8::Value>&)’:
../binding.cc:891:72: error: invalid conversion from ‘void (*)(uv_idle_t*, int) {aka void (*)(uv_idle_s*, int)}’ to ‘uv_idle_cb {aka void (*)(uv_idle_s*)}’ [-fpermissive]
/root/.node-gyp/0.12.1/deps/uv/include/uv.h:711:15: error: initializing argument 2 of ‘int uv_idle_start(uv_idle_t*, uv_idle_cb)’ [-fpermissive]
../binding.cc: In constructor ‘zmq::Socket::OutgoingMessage::BufferReference::BufferReference(v8::Handle<v8::Object>)’:
../binding.cc:967:13: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘MakeWeak’
../binding.cc: In destructor ‘zmq::Socket::OutgoingMessage::BufferReference::~BufferReference()’:
../binding.cc:972:18: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
../binding.cc: In static member function ‘static void zmq::Socket::OutgoingMessage::BufferReference::WeakCheck(v8::Isolate*, v8::Persistent<v8::Object>*, zmq::Socket::OutgoingMessage::BufferReference*)’:
../binding.cc:987:14: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘MakeWeak’
../binding.cc: In member function ‘void zmq::Socket::Close()’:
../binding.cc:1067:16: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
../binding.cc: In function ‘void zmq::ZmqVersion(const v8::FunctionCallbackInfo<v8::Value>&)’:
../binding.cc:1104:5: error: ‘New’ is not a member of ‘v8::String’
../binding.cc:1104:5: error: return-statement with a value, in function returning 'void' [-fpermissive]
In file included from ../binding.cc:36:0:
../node_modules/nan/nan.h: In function ‘void NanDisposePersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&) [with T = v8::Object]’:
../node_modules/nan/nan.h:786:44: instantiated from here
../node_modules/nan/nan.h:394:5: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = int]’:
../binding.cc:554:7: instantiated from here
../binding.cc:506:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc:507:30: error: no matching function for call to ‘v8::Integer::New(int&)’
../binding.cc:507:30: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = unsigned int]’:
../binding.cc:556:7: instantiated from here
../binding.cc:506:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc:507:30: error: no matching function for call to ‘v8::Integer::New(unsigned int&)’
../binding.cc:507:30: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = long long int]’:
../binding.cc:558:7: instantiated from here
../binding.cc:506:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc:507:30: error: no matching function for call to ‘v8::Integer::New(long long int&)’
../binding.cc:507:30: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = long long unsigned int]’:
../binding.cc:560:7: instantiated from here
../binding.cc:506:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc:507:30: error: no matching function for call to ‘v8::Integer::New(long long unsigned int&)’
../binding.cc:507:30: note: candidate is:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = int]’:
../binding.cc:578:7: instantiated from here
../binding.cc:514:51: error: ‘ThrowException’ was not declared in this scope
../binding.cc:517:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = unsigned int]’:
../binding.cc:580:7: instantiated from here
../binding.cc:514:51: error: ‘ThrowException’ was not declared in this scope
../binding.cc:517:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = long long int]’:
../binding.cc:582:7: instantiated from here
../binding.cc:514:51: error: ‘ThrowException’ was not declared in this scope
../binding.cc:517:49: error: ‘ThrowException’ was not declared in this scope
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = long long unsigned int]’:
../binding.cc:584:7: instantiated from here
../binding.cc:514:51: error: ‘ThrowException’ was not declared in this scope
../binding.cc:517:49: error: ‘ThrowException’ was not declared in this scope
In file included from ../binding.cc:36:0:
../node_modules/nan/nan.h: In function ‘void NanDisposePersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&) [with T = v8::Function]’:
../binding.cc:604:30: instantiated from here
../node_modules/nan/nan.h:394:5: error: ‘class v8::Persistent<v8::Function>’ has no member named ‘Clear’
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = int]’:
../binding.cc:519:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = unsigned int]’:
../binding.cc:519:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = long long int]’:
../binding.cc:519:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = long long unsigned int]’:
../binding.cc:519:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = int]’:
../binding.cc:508:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = unsigned int]’:
../binding.cc:508:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = long long int]’:
../binding.cc:508:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = long long unsigned int]’:
../binding.cc:508:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::SetSockOpt(int, v8::Handle<v8::Value>) [with T = char*]’:
../binding.cc:541:3: warning: control reaches end of non-void function [-Wreturn-type]
../binding.cc: In member function ‘v8::Handle<v8::Value> zmq::Socket::GetSockOpt(int) [with T = char*]’:
../binding.cc:529:3: warning: control reaches end of non-void function [-Wreturn-type]
zmq.target.mk:83: recipe for target 'Release/obj.target/zmq/binding.o' failed
make: *** [Release/obj.target/zmq/binding.o] Error 1
make: Leaving directory '/my/folder/node_modules/zmq/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.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.18.11+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /my/folder/node_modules/zmq
gyp ERR! node -v v0.12.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 3.18.11+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "zmq"
npm ERR! node v0.12.1
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zmq 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 zmq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /my/folder/npm-debug.log
The ZMQ installation went through perfectly. Node-gyp worked like a charm with other packages.
Thanks a bunch.
Get a new, supported version of zeromq.node. 2.7.0 is outdated.
Node package is installed on RaspberryPi without any issue:
First install development headers:
pi@raspberrypi ~ $ sudo apt-get install libzmq-dev
(if you want to use libzmq-4.x, download libsodium, libzmq from github and install from source)
[npm uninstall zmq] (if installed)
cd libsodium
./configure && make && make install
cd ../libzmq
./configure && make && make install
sudo ldconfig
npm install zmq
Then install zmq via npm:
pi@raspberrypi ~ $ npm install zmq
|
> [email protected] install /home/pi/node_modules/zmq
> node-gyp rebuild
make: Entering directory `/home/pi/node_modules/zmq/build'
CXX(target) Release/obj.target/zmq/binding.o
SOLINK_MODULE(target) Release/obj.target/zmq.node
SOLINK_MODULE(target) Release/obj.target/zmq.node: Finished
COPY Release/zmq.node
make: Leaving directory `/home/pi/node_modules/zmq/build'
[email protected] node_modules/zmq
├── [email protected]
└── [email protected]
FIY: In order to install libzmq-4.x on RaspberryPI, you may use the following precompiled packages:
https://github.com/ceremcem/libzmq-4.x-armhf-cca.git
Download and run sudo make install