How to check if your machine has
gcc/g++ installed on Ubuntu 5.04
¡¡
- If you downloaded and installed Ubuntu Linux with the
link that I have provided on 'Useful Links' section
in our course webpage, your machine probably has gcc/g++ complier from the
beginning. If you downloaded some other version (e.g., Ubuntu 5.04), then
you will have to install gcc/g++ manually.
¡¡
- Once you boot up the machine, type "ALT+F2". Then, a
window will be opened. In the window, type 'xterm' and enter. This step will
bring you the
xterm
terminal on the console.
¡¡
- Now, you can check whether your machine has gcc/g++
complier in it. Type 'which gcc' on the xterm and 'which g++' as well. If
you can see something like '/usr/bin/gcc' and (or) 'usr/bin/g++', then your
machine has the appropriate complier for our project. If you just cannot see
anything after it, then you will have to install gcc/g++ as the below.
¡¡
- Type 'sudo apt-get install build-essential' on the xterm.
It will install gcc/g++ complier as well as some other necessary stuffs for
the project. After this, check your machine with step 2.
¡¡
- The package management tool for Ubuntu Linux is called 'apt-get'.
In order to assist your further understanding in using Ubuntu, you will need
to be very familiar with
apt-get.
- You will have to learn some of the Linux command by
yourself for the programming project. There are bunch of useful resources
over the Internet if you
google it with some relevant words.
¡¡
- Moreover, you will also have to learn how to use/manage
Ubuntu Linux box. You can visit
Ubuntu Linux site
to explore some of their
documentation.
¡¡
<Back to Home>
Last Update:
26/10/2005