Tgwizman Tgwizman - 1 month ago 8
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:

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?

Answer

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.)