Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-14-2004, 05:28 AM   #1
Registered: May 2004
Posts: 54

Rep: Reputation: 15
where is GNU gcc compiler?

my c++ compiler doesnt work after i did something(probably setting some environments, im not sure), how to solve this?

my problem:
configure: error: installation or configuration problem: C++ compiler cannot create executables.
Old 06-14-2004, 06:24 AM   #2
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
can you write a test program and try to compile it and tell what it says?

$ cat >

int main() {
return 0;

$ c++
Old 06-14-2004, 06:45 PM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,623

Rep: Reputation: 208Reputation: 208Reputation: 208
I'd check your PATH first. To see your PATH run
echo $PATH
You'll get a list of directories, separated by ':'. You gcc executable is probably in /usr/bin (use 'locate gcc' to check), so you should have the directory on your list. If not, run
export PATH=$PATH:/usr/bin
Old 06-15-2004, 09:31 PM   #4
Registered: May 2004
Posts: 54

Original Poster
Rep: Reputation: 15
thanks a lot , but i have formatted and reinstalled my redhat cuz the PATH thing really confused me a lot, thanks a nyway
Old 06-16-2004, 01:18 PM   #5
LQ Newbie
Registered: Jun 2004
Distribution: SUSE 9.1
Posts: 4

Rep: Reputation: 0
I'm a newbie with SUSE 9.1. I can't find the gcc compiler. The 'locate gcc' command returns an error.

What's Happened so far: I've downloaded some code. After I type ./configure I get an error that there is no gcc or any compiler available. Thanks for any help.
Old 06-16-2004, 01:55 PM   #6
Registered: Mar 2003
Posts: 64

Rep: Reputation: 15
Did you run 'updatedb' before trying 'locate gcc'?
If locate doesnt work try 'whereis gcc' which should tell you where you're gcc executable is.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Introduction to GCC - The GNU Compiler Collection jeremy Programming 2 03-28-2005 05:17 AM
Help with GNU C++ Compiler please... Stiltz Linux - Software 1 03-15-2005 10:17 PM
help with installing Gnu C compiler little_arab Mandriva 1 04-01-2004 01:45 PM
Where to get compiler gnu c sofasurfer Linux - Games 1 01-11-2004 02:25 AM
GNU gcc 3 compiler Craneology Linux - Software 3 03-04-2003 05:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration