LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   please help - cannot find gcc in path (https://www.linuxquestions.org/questions/linux-general-1/please-help-cannot-find-gcc-in-path-13991/)

mchao 02-10-2002 10:37 PM

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

DavidPhillips 02-10-2002 11:09 PM

/usr/bin/gcc


try this

locate gcc | less



you installed gcc???


did you run ldconfig?


what do you have in /etc/ld.so.conf?

mchao 02-11-2002 02:10 AM

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

Mik 02-11-2002 03:00 AM

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.

mchao 02-11-2002 03:04 AM

Thanks . I tried to do a search for g++ compiler but nothing came up. Can you link me?

Thanks for your help.

Mike.

acid_kewpie 02-11-2002 06:06 AM

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.

DavidPhillips 02-12-2002 12:30 AM

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

mchao 02-14-2002 09:32 AM

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

acid_kewpie 02-14-2002 09:44 AM

ldconfig is just a command, run it on a console...

[user@host dir]$ ldconfig

mchao 02-14-2002 09:49 AM

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.