从终端在Ubuntu 10.04上安装Node.js的帮助?

从终端在Ubuntu 10.04上安装Node.js的帮助?,ubuntu,node.js,installation,terminal,Ubuntu,Node.js,Installation,Terminal,我使用此网站是为了遵循有关如何安装节点的命令: https://github.com/joyent/node/wiki/Installation 此部分没有错误: git clone --depth 1 git://github.com/joyent/node.git # or git clone git://github.com/joyent/node.git if you want to checkout a stable tag cd node git checkout v0.4.10

我使用此网站是为了遵循有关如何安装节点的命令:

https://github.com/joyent/node/wiki/Installation
此部分没有错误:

git clone --depth 1 git://github.com/joyent/node.git # or git clone git://github.com/joyent/node.git if you want to checkout a stable tag
cd node
git checkout v0.4.10 # optional.  Note that master is unstable.
export JOBS=2 # optional, sets number of parallel commands.
mkdir ~/local
一旦我点击这个命令,我就得到了错误

root@tgwizman:/node# ./configure --prefix=$HOME/local/node
Checking for program g++ or c++          : not found 
Checking for program icpc                : not found 
Checking for program c++                 : not found 
/node/wscript:228: error: could not configure a cxx compiler!

我应该如何获得cxx编译器?

您应该能够在终端中运行以下命令:

sudo apt-get update
sudo apt-get install build-essential

(另外,阅读更多的背景信息等。)

您缺少编译器

只需输入:

sudo apt-get install g++
这本指南包罗万象


这是一个完整的指南,一步一步地介绍如何在Ubuntu 10.04上设置nodejs


ubuntu上
我更喜欢通过安装
nodejs
,这对我来说效果最好,另外它还允许您切换经常需要的多个版本的
nodejs

安装示例:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
command -v nvm
nvm install node
nvm use node
nvm run node --version

有人知道如何在Fedora 16上安装这个吗?我试过了,但运气不好。。。[agile@453D05Jnode-v0.10.15]$sudo yum安装g++加载的插件:langpacks、presto、refresh packagekit没有可用的g++包。错误:无事可做[agile@453D05J节点-v0.10.15]$抱歉。。。典型:找到答案,我找到答案,我需要安装
$sudo yum安装gcc-c++