Debian Linux Install GNU GCC Compiler and Development Environment

by Vivek Gite on February 26, 2009 · 9 comments

How do I install GNU/GCC compiler tools collection under Debian Linux system using command line options?

You need to install package called build-essential package.

This package contains an informational list of packages which are considered essential for building Debian packages including gcc compiler, make and other required tools. This package also depends on the packages on that list, to make it easy to have the build-essential packages installed.

Simply type the following command as root user:
# apt-get update && apt-get upgrade
# apt-get install build-essential
# gcc -v
# make -v

Now, you should able to compile software, create Debian packages or simply write a code using C / C++ compilers.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 9 comments… read them below or add one }

1 Asanga Udugama September 27, 2009

To get the basic development related man pages type;

# apt-get install manpages-dev

Reply

2 Rikard December 5, 2009

Worked Perfectly!! Thanks.

Reply

3 daniel February 4, 2010

thx for the info.
this site is my main linux source.
cheers

Reply

4 Jaime Montoya May 3, 2010

Thank you so much! It works perfectly.

Reply

5 master June 17, 2010

hello. i can`t use apt-get, becouse he cannot do the updates. i think the update server for apt-get its old. how i fix this problem ?

0% [Conectando a mirrors.ubv.edu.ve (167.134.102.17)]

Reply

6 prosys August 4, 2010

master
if you are using linux debian you must go terminal administrator.
you have my seem problem.

Reply

7 andrew April 14, 2011

so apt-get doesn’t know about “groups” like yum does ?

Reply

8 Kay Marill November 15, 2011

When i try to do apt-get install build-essential i get the following message:

Media change: please insert the disc labeled
‘Debian GNU/Linux 5.0.5 _Lenny_ – Official i386 CD Binary-1 20100626-17:37′
in the drive ‘/cdrom/’ and press enter

I never had a disc.. so i can’t insert it now.. not sure what to do. can anyone help, please (i am very new to this so a little slow)

Thanks!

Reply

9 indra najwa November 18, 2011

Hi Kay,
Just edit your apt source list, located at /etc/apt, by typing this :
(as root) gedit /etc/apt/sources.list
Then put a # in the beginning line that says deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 CD Binary-1 20110205-17:27]/ squeeze main==>example from my sources.list

Save the file. Still as root type apt-get update. Then you can try install/upgrade again.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 15 + 9 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: