I was using this site to follow the commands on how to install node:
https://github.com/joyent/node/wiki/Installation
This part had no errors:
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
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 https://help.ubuntu.com/community/CompilingSoftware for a bit more background info, etc.)
You are missing the compiler.
Just enter:
sudo apt-get install g++
This guide has it all.
http://www.codediesel.com/linux/installing-node-js-on-ubuntu-10-04/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With