我正在使用此站点来遵循有关如何安装节点的命令:
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
(此外,阅读https://help.ubuntu.com/community/CompilingSoftware以获取更多背景信息等)