1

I have a problem running a simple Hello World on Node.js. I'm using CentOS and installed it via yum. When I run the file with Node.js, this error pops up:

node: symbol lookup error: node: undefined symbol: ares_library_init

I tried searching google to no avail. I only found that this belongs to the c-ares library. Any idea of how I can solve this?

The file contains this:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337, "127.0.0.1");
console.log('Server running at http://127.0.0.1:1337/');

1 Answer 1

0

Solved it. You can't use yum.

yum remove nodejs
git clone http://github.com/joyent/node.git
cd node
git checkout v0.4.10
./configure
make
make install
Sign up to request clarification or add additional context in comments.

1 Comment

I had the exact same issue in fedora 16 after following the yum install instructions. removing it and configuring it now from scratch.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.