Install C++ development environment using Ubuntu 10.10
In this post I describe how to install a Ubuntu c++ development environment.
To protect myself from reinstalling this environment while switching hardware, etc. I used vmware player.
Step 1: Download vmware player and get yourself a free license.
The software can be retrieved here: http://www.vmware.com/products/player/
Step 2: Download the Ubuntu Desktop 10.10 edition.
The software can be retrieved http://www.ubuntu.com/desktop/get-ubuntu/download
vmware will do an easy install for you. The configuration you provide is your full name, username and your password. Optionally you can change the hardware attached to this virtual machine and change the amount of disc space the vmware image is allowed to reserve.
I removed the floppy drive and printer and changed the Network Adapter to ‘Bridged’.
Step 3: Change your root password.
Login with the username and password you provided at the Easy install. Open a terminal and type: sudo password root, and set your new password.
Step 4: Install Development Tools and there Dependencies
To get the Eclipse IDE working you have to install Java Runtime environment first. This can be done through the Ubuntu Software Center.
After that I installed Eclipse IDE by extracting the tar.gz file to /opt/.
When I tried to compile my first “Hello World” piece of code I got the error that g++ couldn’t be found. To fix this problem the g++ should be installed. This can be done by entering the command sudo apt-get install g++, alternatively sudo apt-get install build-essentials can be used.
After this it’s possible to build and run the Hello World application.
Additionally version control clients or other software can be installed.