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 03-29-2004, 03:32 PM   #1
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Rep: Reputation: 15
Please help


I installed GSS for my redhat 9 for use to compile Licq, when i run configure i get this error message: configure: error: no acceptable C compiler found in $PATH

Anyone?
 
Old 03-29-2004, 04:25 PM   #2
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
Doesnt anyone know the solution? i could not possibly be the onlyone with this problem?
 
Old 03-29-2004, 04:36 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
GSS? You mean gcc right? which version?
Type: 'whereis gcc' without the quotes and post the output here.
 
Old 03-29-2004, 04:41 PM   #4
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
i just get "gcc:" as output, and it is installed becouse when trying to run the RPM from the installation cd i just get "gcc already installed".
 
Old 03-29-2004, 05:26 PM   #5
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
so then what?

Last edited by Sence2001; 03-29-2004 at 09:03 PM.
 
Old 03-29-2004, 09:04 PM   #6
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
Anyone?
 
Old 03-29-2004, 10:38 PM   #7
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Try "which gcc" or "type -p gcc" to find where gcc is located (e.g. /usr/local/bin).
Then type "echo $PATH" to see if the above path is listed as part of your $PATH variable.

I can't say this is the answer to your problem, but if you have gcc installed, and the error you're getting is that gcc is not in your path, this is one thing to verify.
 
Old 03-29-2004, 11:32 PM   #8
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
ok this is what i get:

[root@localhost root]# which gcc
/usr/bin/which: no gcc in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
[root@localhost root]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@localhost root]#



Now what do i do?
 
Old 03-30-2004, 03:07 AM   #9
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Log out of root, and then log in as a normal user....you're only asking for trouble as root.
Still, you have /bin, /usr/bin and /usr/local/bin in root's path...gcc should have been in one of those. But maybe the RPM put it somewhere else. You can also do "locate gcc | grep /bin" to find it even if it's not in your path.
 
Old 03-30-2004, 01:32 PM   #10
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
[root@localhost root]# locate gcc | grep /bin
/usr/bin/gcc296
/usr/bin/i386-redhat-linux7-gcc
[root@localhost root]#
 
Old 03-30-2004, 03:03 PM   #11
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
Guess no one knows the answer to this one....just my luck....1 week with linux and 0 programs installed, format c:?
 
Old 03-30-2004, 03:06 PM   #12
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Would you please stop posting comments on how 'no one knows the answer'! Your copy of gcc is just installed in a really bizarre place. What distro are you using?
Anyway, try: (as root)
Code:
ln -s /usr/bin/gcc296 /usr/bin/gcc
 
Old 03-30-2004, 03:08 PM   #13
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Oh, and you may also need g++ for compiling c++ programs...
Code:
locate g++ | grep /bin
then follow the step above but change gcc296 to whatever name comes up for g++ and the gcc for g++. Only do this if it doesn't find a file called just g++ in /usr/bin though.
 
Old 03-30-2004, 03:10 PM   #14
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Hang on....red hat 9 you said....right, didn't see that bit. Try installing (or reinstalling) the gcc-devel and g++-devel packages from the install cd. My version of RedHat 9 put everything in the right place, I'm betting you just didn't install the necessary packages because you didn't think you'd need a compiler if you weren't going to be writing programs.
 
Old 03-30-2004, 04:08 PM   #15
Sence2001
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks for all your help but it says "Package already installed", please forgive my frustration but ive been trying to solve this problem for week now and im totally new to linux.
 
  


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




All times are GMT -5. The time now is 08:44 PM.

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