LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-20-2012, 05:01 PM   #1
SentientOS
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
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,353

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
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
penguintutor
Member
 
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
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
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
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,260

Rep: Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245
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".
 
  


Reply


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


All times are GMT -5. The time now is 01:57 AM.

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