Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-20-2012, 05:01 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
CentOS6.2 can't have "no compiler" can it?

I received an error, stating that bash was unable to find CC or GCC. Surely this is a mistake. Is there a problem with the default configuration?
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-20-2012, 05:07 PM   #2
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
No mistake, you don't need a compiler unless you're going to compile something. Windows doesn't come with a compiler (as far as I know), neither does OSX.

You probably just need to install the gcc package. Use "yum provides gcc" (or whatever package distribution system CentOS uses) to find out the name of the package you need to install.

Last edited by suicidaleggroll; 01-20-2012 at 05:09 PM.
3 members found this post helpful.
Old 01-20-2012, 05:15 PM   #3
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
A compiler is not normally installed by default for most distros.

Most distros do however have a package that includes the most common tools (gcc make etc)

I don't have a CentOS system handy, but believe the command should be:

yum groupinstall 'Development Tools'

You may also need to install library files or any other dependencies for the particular program that you are trying to compile.
Old 01-22-2012, 08:55 AM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
Installing a fully functional gcc : # yum install gcc-c++

I.e. installing the c++ compiler will also install the dependencies
that make the c compiler (gcc) work.

# yum grouplist : Lists the available groups, like "Development Tools".

Old 01-22-2012, 12:14 PM   #5
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,673

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
For the record, the DVD set offers the choice of three desktops:

mimimal (add your own software later)
full (all the desktop-style software on the disk; for office computers, where the SA does any compiling necessary)
developer (the same, plus support for compilation; for home computers, where you may need to add stuff, or for programmers)

I expect you installed from the CD, which is probably equivalent to "full".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"no acceptable C compiler found in $PATH" while installing berkeley db" linux1028 Linux - Newbie 6 06-01-2010 10:39 AM
"error: C compiler cannot create executables" when I try to compile gcc4.3.2 in/tools spencer8ab Linux From Scratch 4 05-13-2009 12:20 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
"cannot exec `as': ..." AND "C compiler cannot create ..." pr3st0 Linux - Software 0 10-15-2004 01:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration