I'm running in to a brick wall when running node.js on my server - and I was hoping I could get a hand (apologies if it's an noob problem - I promise to build something awesome with node.js to make up for it!).
When I make and install on my server all is fine. However, any operation in the JavaScript throws the following:
[remy@leftlogic ~]$ node !$
node hw.js
native runtime.js:392
throw %MakeTypeError('called_non_callable',[typeof a]);
^
TypeError: undefined is not a function
at Function.CALL_NON_FUNCTION (native)
at node.js:509:29
at node.js:946:1
at node.js:950:1
In this case, the hw.js file only contains (only because I wanted to be sure it wasn't the code and in fact the build):
var sys = require('sys');
The box is a 64bit machine (I think - I'm a little rusty on the whole sys-admin stuff), but here's uname if that helps:
Linux leftlogic 2.6.18-8.el5 #1 SMP Thu Mar 15 19:46:53 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
On the flip side, I've got it working fine on my MBP laptop - so I'm sure it's to do with my linux box...
Many thanks,
Remy Sharp