I was compiling Node on a new CentOS server and ran into an issue when compiling:
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
Thanks to this bug report, I was able to solve the problem relatively easy. Assuming that gcc and g++ are in the /usr/bin directory, I ran:
make distclean
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
./configure
make
Viola! Everything worked from there.
blog comments powered by Disqus