LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-10-2002, 11:37 PM   #1
mchao
LQ Newbie
 
Registered: Feb 2002
Location: Los Angeles
Distribution: Red Hat
Posts: 17

Rep: Reputation: 0
Unhappy 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
 
Old 02-11-2002, 12:09 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
/usr/bin/gcc


try this

locate gcc | less



you installed gcc???


did you run ldconfig?


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

Last edited by DavidPhillips; 02-11-2002 at 12:10 AM.
 
Old 02-11-2002, 03:10 AM   #3
mchao
LQ Newbie
 
Registered: Feb 2002
Location: Los Angeles
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 02-11-2002, 04:00 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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.
 
Old 02-11-2002, 04:04 AM   #5
mchao
LQ Newbie
 
Registered: Feb 2002
Location: Los Angeles
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks . I tried to do a search for g++ compiler but nothing came up. Can you link me?

Thanks for your help.

Mike.
 
Old 02-11-2002, 07:06 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 02-12-2002, 01:30 AM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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
 
Old 02-14-2002, 10:32 AM   #8
mchao
LQ Newbie
 
Registered: Feb 2002
Location: Los Angeles
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Unhappy 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
 
Old 02-14-2002, 10:44 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
ldconfig is just a command, run it on a console...

[user@host dir]$ ldconfig
 
Old 02-14-2002, 10:49 AM   #10
mchao
LQ Newbie
 
Registered: Feb 2002
Location: Los Angeles
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Smile 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
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie: how to define cc/gcc path LFCsion Mandriva 3 08-26-2005 04:32 AM
Setting arm-gcc path? karfei00 Linux - General 0 06-16-2004 05:59 AM
Gcc not found in the $PATH redrobin77 Linux - Software 3 01-12-2004 12:08 PM
gcc path problem lonzilla1969 Linux - Newbie 2 09-09-2003 03:23 PM
GCC include path. jwilson Linux - General 1 04-02-2001 04:58 PM


All times are GMT -5. The time now is 02:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration