Node.js Build failed: -> task failed (error#2)?
- by Richard Hedges
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++?