please help - cannot find gcc in path
Hello. I'm trying to install kinkatta. I installed gcc but it can't find it in the path. First of all what is the command to determine whether it was installed and the location of gcc. Secondly what is the exact syntax of setting the path and where do i set it. Please help me -- i'm frustrated.
Thanks so much. Error message follows. checking for a C-Compiler... checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking how to run the C preprocessor... gcc -E checking for a C++-Compiler... checking for g++... no checking for CC... no checking for xlC... no checking for DCC... no configure: error: no acceptable C++-compiler found in $PATH Mike =D |
/usr/bin/gcc
try this locate gcc | less you installed gcc??? did you run ldconfig? what do you have in /etc/ld.so.conf? |
ld.so.conf
This is what I have in /etc/ld.so.conf
/usr/kerberos/lib /usr/X11R6/lib /usr/lib/qt-2.3.1/lib So what should I do now? also what is less in locate gcc | less Thanks a lot. Mike |
The configure output says it can find the gcc compiler so you shouldn't be looking for that. The problem is it can't find the g++ compiler. The code you are trying to compile is probably c++ code so it needs a c++ compiler which you don't seem to have installed. Try installing the g++ rpm's or packages.
The less command is used so you can scroll up and down in the output if it doesn't fit on one screen. |
Thanks . I tried to do a search for g++ compiler but nothing came up. Can you link me?
Thanks for your help. Mike. |
you should just install the gcc-c++ rpm from your distro cd's.
'less' is a better version of 'more' which you might know from DOS. it shows one scren of data at a time, but lets you scroll up and down as you wish. handy. |
you can do a search like this
locate *.so this will give you an idea of where your libs are. there are a lot of static loaded libs and you do not need all of them in your library path. But /usr/lib and /usr/local/lib should be added to /etc/ld.so.conf and to make the changes to this file take effect you will have to run ldconfig |
please tell me how to run ldconfig
Hello. Can you please tell me how to "run" ldconfig (also where is it located)? I've added the path to my libraries to /etc/ld.so.config. Should that be it?
Thanks a lot. Mike |
ldconfig is just a command, run it on a console...
[user@host dir]$ ldconfig |
thanks for your help
Hey, I just wanted to say thanks for all your help. It means a lot.
I will return the favor when I get better. -m =D |
All times are GMT -5. The time now is 05:50 AM. |