Skip to content Skip to sidebar Skip to footer

Nodejs Hello World Example - Symbol Lookup Error

UPDATE -- LINUX FEDORA 15 Following an example from: http://simonwillison.net/2009/Nov/23/node/ My code: var util = require('util'), http = require('http'); http.createServer

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:

  1. Remove any existing node and nodejs applications using your package manager

  2. 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:

http://nodejs.tchol.org/

Post a Comment for "Nodejs Hello World Example - Symbol Lookup Error"