Nodejs Hello World Example - Symbol Lookup Error
Solution 1:
this is 2009 tutorial and old api. You should do it like this
var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
});
server.listen(8000);
console.log("Server running at http://127.0.0.1:8000/");
Your tutorial is old :) switch to this ->
http://howtonode.org/hello-node
Solution 2:
To execute a node.js application, call it using node, not nodejs.
node helloworld.js
The particular error seems similar to a V8 build mismatch problem that was in Node 0.6.15. Have you tried using a newer (or rolling back to an older) version of Node?
Solution 3:
To perform node.js installation on Fedora Linux download and install the standalone rpm (http://nodejs.tchol.org/stable/f16/SRPMS/repoview/nodejs.html) and perform install as follows:
Remove any existing node and nodejs applications using your package manager
Install node.js from standalone rpm
rpm –ivh ./configure make make install
Attempting to use a package manager may lead to dependency issues as described on the following site:
Post a Comment for "Nodejs Hello World Example - Symbol Lookup Error"