I am Hack Sparrow
Captain of the Internets.

Node.js compilation error on Ubuntu – Install using apt-get

This post this written for people who will encounter this mysterious Node.js compilation error.

*** glibc detected *** /usr/lib/gcc/i686-linux-gnu/4.6.1/cc1plus: malloc(): smallbin double linked list corrupted: 0x0a4a0eb8 ***
/home/$USER/Downloads/node-v0.6.15/deps/v8/src/ia32/lithium-ia32.cc: In member function 'int v8::internal::HTemplateInstruction::OperandCount() [with int V = 2]':
/home/$USER/Downloads/node-v0.6.15/deps/v8/src/ia32/lithium-ia32.cc:2265:3: internal compiler error: Aborted
Please submit a full bug report, with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
scons: *** [obj/release/ia32/lithium-ia32.o] Error 1
scons: building terminated because of errors.
Waf: Leaving directory `/home/$USER/Downloads/node-v0.6.15/out'
Build failed: -> task failed (err #2):
    {task: libv8.a SConstruct -> libv8.a}
make: *** [program] Error 1

I got it continuously from Node 0.6.something onwards on VirtualBox running under Windows 7. I have no idea what causes this error, but I can help you install the latest version of Node.js despite this error.

Let's install Node using Ubuntu's package manager apt-get. Just follow this procedure:

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs npm

Confirm Node is installed well and works:

$ node -v


One Response to “Node.js compilation error on Ubuntu – Install using apt-get”

  1. Ben says:

    I’m getting this error on mac; any solutions for me?

Make a Comment