Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-26-2005, 10:24 PM   #1
Registered: May 2004
Location: Texas
Posts: 277

Rep: Reputation: 30
Question GCC not found?

I just installed FC3 linux on one of my machines. Anyway.. I went and tried to install proftpd and this is what I got:

[root@host proftpd]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
I am positive that GCC is installed, but for some reason the configure script is not detecting it... Can someone please help?

Old 06-26-2005, 11:11 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
As the error message states, the compiler was not found in your $PATH (the path variable used by bash when looking for executables). If you were installing as user, it probably wouldn't be. But, if you were installing as root, it should be in your path.

To fix this, edit /etc/ and add the paths to the compilers mentioned in the error message. Then run the command 'source /etc/' to get bash to reload the $PATH, then try again.

Just remember that you may have to su to root to finish the process. User has limited privileges, and can only take the process so far, then root privilege is required to finish.
Old 06-26-2005, 11:17 PM   #3
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,879

Rep: Reputation: 263Reputation: 263Reputation: 263
I guess that you could
whereis gcc
And put the dir in you path if gcc is there.
It's at ~/.profile or ~/.bash_profile or something like that. Look in your home dir for a hidden file with that name.

If you can't find it you may want to re-install gcc and related files.
Good luck.
Old 06-27-2005, 01:47 AM   #4
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Ok, when I execute that command, I get:

[root@host ~]# whereis gcc
gcc: /usr/libexec/gcc
Where would I add the path to the ".bash_profile" file? This is what mine looks like. (I am running as root):

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc

# User specific environment and startup programs


export PATH
Old 06-27-2005, 03:55 AM   #5
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Got it! Maybe gcc was not installed... I just used this command:

yum install gcc


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
G++ not found, but gcc is there... how to enable/install G++? tzotzo Red Hat 7 08-23-2005 11:37 AM
gcc vs. g++ -> iostream lib found vs. not found CooManChu Linux - General 1 12-11-2004 10:20 AM
Gcc not found in the $PATH redrobin77 Linux - Software 3 01-12-2004 12:08 PM
gcc, cc, cl Not Found ? sogtulakk Linux - General 5 06-26-2003 10:00 AM
gcc / cc etc not found ! realos Linux - Software 6 07-25-2002 05:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 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