无法在Ubuntu 10.04上构buildNode.js
当我尝试在我的Ubuntu 10.04服务器上构buildNode.js时,它失败,出现以下错误:
/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
build设时,我跑了下面的命令:
git clone --depth 1 git://github.com/joyent/node.git cd node mkdir ~/local ./configure --prefix=$HOME/local/node make
我也尝试编译它没有设置 – 前缀,它的工作。 但是,它没有工作来安装它。 运行make install时出现这个错误:
Unable to install the file 'deps/uv/c-ares/ares_build.h' (not found in dir:///etc/node)
我已经尝试0.4.8和0.4.0这个,但我得到了他们两个分段错误。
这里是一些更多的信息:
- 操作系统:Ubuntu 10.04
- Arch:x64
- 节点版本:0.4.8或0.4.0
- GCC版本:4.4.3(Ubuntu 4.4.3-4ubuntu5)
有任何想法吗?
我刚刚尝试自己安装node.js。 问题在于,默认情况下分支点是不稳定的。 在安装之前调用
$ git checkout origin/v0.4 $ ./configure $ make $ make install
当然你也想在节点后面安装npm
,因为每个人都喜欢它
$ curl http://npmjs.org/install.sh | sh