Tgwizman Tgwizman - 3 months ago 11
Node.js Question

Help on installing Node.js on Ubuntu 10.04 from terminal?

I was using this site to follow the commands on how to install node:

This part had no errors:

git clone --depth 1 git:// # or git clone 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

Once I hit this command, I got the error

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!

What should I do to get a cxx compiler?


You should just be able to run the following in a terminal:

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

(Also, have a read of for a bit more background info, etc.)