LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-18-2008, 05:33 AM   #1
Shakes79
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Rep: Reputation: 0
no acceptable C compiler found in $PATH


Hello

I tried to install the new phyton as well as other software, but everytime i recieve this error message "no acceptable C compiler found in $PATH" although a gcc folder exist. If i type in "gcc" i recieve the error message "bash: gcc: command not found", what should i do, Should I reinstall gcc ?

My System: Red Hat 5

Thanks

Last edited by Shakes79; 01-18-2008 at 05:50 AM.
 
Old 01-18-2008, 07:51 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It means that the directory which contains the gcc executable is not in your PATH environment.

To find out which gcc the system uses, at a terminal, enter 'which gcc' (without quotes).

To see if that directory is in your PATH, enter 'echo $PATH'.

To add that directory to your PATH,
Code:
PATH=$PATH:/usr/bin       # or wherever the 'which gcc' command says it is
export PATH

Last edited by bigrigdriver; 01-18-2008 at 07:54 AM.
 
Old 01-21-2008, 05:40 AM   #3
Shakes79
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your reply,

These are my results:

Code:
[root@linuxdesk ~]# which gcc
/usr/bin/which: no gcc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
[root@linuxdesk ~]#
so i think i dont have one installed, but nevertheless i dont understand why i have some directories "gcc". Does it makes any difference if this dircetory is for 32 or 64bit ???

Thanks
 
  


Reply



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 scottown Red Hat 12 04-09-2013 08:44 PM
no acceptable C compiler found in $PATH sinXposed Linux - Software 4 08-10-2006 02:14 PM
no acceptable C compiler found in $PATH agentdunken SUSE / openSUSE 12 07-13-2005 03:41 PM
no acceptable C compiler found in $PATH AL MOSLEM Programming 19 02-08-2005 10:03 AM
no acceptable C compiler found in $PATH skrothuset Linux - Newbie 4 06-13-2003 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:11 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
Open Source Consulting | Domain Registration