Node.js Build failed: -> task failed (error#2)?

Posted by Richard Hedges on Server Fault See other posts from Server Fault or by Richard Hedges
Published on 2011-09-08T12:10:05Z Indexed on 2011/11/26 17:56 UTC
Read the original article Hit count: 279

Filed under:
|

I'm trying to install Node.js on my CentOS server.
I run ./configure and it runs perfectly fine. I then run the 'make' command and it produces the following:

[5/38] libv8.a: deps/v8/SConstruct -> out/Release/libv8.a
/usr/local/bin/python "/root/node/tools/scons/scons.py" -j 1 -C
"/root/node/out/Release/" -Y "/root/node/deps/v8" visibility=default
mode=release arch=ia32 toolchain=gcc library=static snapshot=on scons:
Reading SConscript files ... ImportError: No module named bz2: File
"/root/node/deps/v8/SConstruct", line 37:
import js2c, utils File "/root/node/deps/v8/tools/js2c.py", line
36:
import bz2 Waf: Leaving directory `/root/node/out' Build failed:
-> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a} make: * [program]
Error 1

I've done some searching on Google but I can't seem to find anything to help.
Most of what I've found is for Cygwin anyway, and I'm on CentOS 4.9.

Like I said, the ./configure went through perfectly fine with no errors, so there's nothing there that I can see.

EDIT

I've got a little further. Now I just need to upgrade G++ to version 4 (or higher).
I tried yum update gcc but no luck, so I tried yum install gcc44, which resulted in no luck either.
Has anyone got any ideas as to how I can update G++?

© Server Fault or respective owner

Related posts about centos

Related posts about node.js