Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 964
Tgwizman Avatar asked Aug 15 '11 15:08

Tgwizman


2 Answers

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

like image 86
Ian Oxley Avatar answered Sep 22 '22 02:09

Ian Oxley


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/

like image 44
fe_lix_ Avatar answered Sep 18 '22 02:09

fe_lix_