PDA

View Full Version : How to install GNU C/C++ Compilers



Hilarryous
March 23rd, 2006, 06:29 AM
I tried installing GNU C/C++ compilers with the following command:

sudo apt-get install build-essential

I have internet connection, but I keep on getting the following message:

Media change: please insert the disc labeled
'Ubuntu 6.04 _Dapper Drake_ - Alpha i386 (20060115)'
in the drive '/cdrom/' and press enter

Can anyone help?

Thanks!!

pranith
March 23rd, 2006, 06:39 AM
hi,
the error is because u included dapper cdrom in ur /etc/apt/sources.list
what u have to do is
open the file /etc/apt/sources.list using sudo so that u can write to it...
comment the line containing the dapper cdrom line ... i.e put # at the beginning of the line containing it...
then uncomment the lines (i.e remove #) starting with deb or deb-src
now save it
now do
apt-get update
apt-get install build-essential

hope that helps
pranith.

xdvx
March 23rd, 2006, 11:29 PM
Just http://ubuntuguide.org/#extrarepositories :)