This is the first time I am getting this error using nodejs, not sure what is it and how to come out of it. Below is the error:
node: symbol lookup error: /home/zishan/node_modules/zmq/build/Release/zmq.node: undefined symbol: zmq_sendmsg
when I am getting above error: I have two test scripts testServer.js and testClient.js, when I am running testServer.js it's working fine but when I am running testClient.js by node testClient.js than testServer.js node window immediately throws above error.
below is the code for both scripts.
// testServer.js
var zmq = require('zmq');
var socket = zmq.socket('push');
socket.bindSync('tcp://127.0.0.1:3000');
console.log('Server is open on port 3000');
setInterval(function(){
console.log('sending work');
socket.send('some work');
}, 500);
Below is testClient.js
var zmq = require('zmq')
var socket = zmq.socket('pull');
socket.connect('tcp://127.0.0.1:3000');
console.log('client connected to port 3000');
socket.on('message', function(msg){
console.log(msg.toString());
});
My Env.
- Ubuntu - 13.04
- Nodejs - 0.10.24
Recently i reinstalled node using How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X) because i got hit by this error node-gyp rebuild.
Any help is much appreciated.