LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Please help (https://www.linuxquestions.org/questions/linux-software-2/please-help-163851/)

Sence2001 03-29-2004 02:32 PM

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?

Sence2001 03-29-2004 03:25 PM

Doesnt anyone know the solution? i could not possibly be the onlyone with this problem?

Komakino 03-29-2004 03:36 PM

GSS? You mean gcc right? which version?
Type: 'whereis gcc' without the quotes and post the output here.

Sence2001 03-29-2004 03:41 PM

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".

Sence2001 03-29-2004 04:26 PM

so then what?

Sence2001 03-29-2004 08:04 PM

Anyone?

mikshaw 03-29-2004 09:38 PM

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.

Sence2001 03-29-2004 10:32 PM

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?

mikshaw 03-30-2004 02:07 AM

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.

Sence2001 03-30-2004 12:32 PM

[root@localhost root]# locate gcc | grep /bin
/usr/bin/gcc296
/usr/bin/i386-redhat-linux7-gcc
[root@localhost root]#

Sence2001 03-30-2004 02:03 PM

Guess no one knows the answer to this one....just my luck....1 week with linux and 0 programs installed, format c:?

Komakino 03-30-2004 02:06 PM

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

Komakino 03-30-2004 02:08 PM

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.

Komakino 03-30-2004 02:10 PM

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.

Sence2001 03-30-2004 03:08 PM

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.


All times are GMT -5. The time now is 07:45 AM.