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? |
Doesnt anyone know the solution? i could not possibly be the onlyone with this problem?
|
GSS? You mean gcc right? which version?
Type: 'whereis gcc' without the quotes and post the output here. |
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".
|
so then what?
|
Anyone?
|
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. |
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? |
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. |
[root@localhost root]# locate gcc | grep /bin
/usr/bin/gcc296 /usr/bin/i386-redhat-linux7-gcc [root@localhost root]# |
Guess no one knows the answer to this one....just my luck....1 week with linux and 0 programs installed, format c:?
|
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 |
Oh, and you may also need g++ for compiling c++ programs...
Code:
locate g++ | grep /bin |
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.
|
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. |