Can't build Node.js on Ubuntu 10.04
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
$ git checkout origin/v0.4
$ ./configure
$ make
$ make install
Of course you also want to install npm
after node because everyone loves it
$ curl http://npmjs.org/install.sh | sh
精彩评论