When I try to build Node.js on my Ubuntu 10.04 server it fails with the following error:
/etc/node/deps/v8/src/hydrogen.cc: In member function 'v8::internal::HInstruction* v8::internal::HGraphBuilder::BuildBinaryOperation(v8::internal::BinaryOperation*, v8::internal::HValue*, v8::internal::HValue*)':
/etc/node/deps/v8/src/hydrogen.cc:4912: internal compiler error: Segmentation fault
When building I ran the following commands:
git clone --depth 1 git://github.com/joyent/node.git
cd node
mkdir ~/local
./configure --prefix=$HOME/local/node
make
I also tried to compile it without setting –prefix and it worked. It didn’t work to install it, though. Got this error when running make install:
Unable to install the file 'deps/uv/c-ares/ares_build.h' (not found in dir:///etc/node)
I have tried this with 0.4.8 and 0.4.0 but I get a segmentation fault on both of them.
Here is some more information:
- OS: Ubuntu 10.04
- Arch: x64
- Node versions: 0.4.8 or 0.4.0
- GCC version: 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Any ideas?
I’ve just tried install node.js myself. The problem is that by default the branch points at master which is unstable. Before installing it call
Of course you also want to install
npmafter node because everyone loves it$ curl http://npmjs.org/install.sh | sh