LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-26-2005, 09:24 PM   #1
newuser455
Member
 
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:

Code:
[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?

Thanks.
 
Old 06-26-2005, 10:11 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,788

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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/ld.so.conf and add the paths to the compilers mentioned in the error message. Then run the command 'source /etc/ld.so.conf' 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, 10:17 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,768

Rep: Reputation: 193Reputation: 193
I guess that you could
Code:
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, 12:47 AM   #4
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

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

Code:
[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):

Code:
# .bash_profile

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

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
Thanks.
 
Old 06-27-2005, 02:55 AM   #5
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

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

Code:
yum install gcc
 
  


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


All times are GMT -5. The time now is 05:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration