LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 06-14-2004, 04:28 AM   #1
karfei00
Member
 
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, 05:24 AM   #2
zeropash
Member
 
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 > x.cc

int main() {
return 0;
}
^D

$ c++ x.cc
 
Old 06-14-2004, 05:45 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
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, 08:31 PM   #4
karfei00
Member
 
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, 12:18 PM   #5
duhwhat
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, 12:55 PM   #6
CrAZy_MoNKeY
Member
 
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.
 
  


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 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 04:17 AM
Help with GNU C++ Compiler please... Stiltz Linux - Software 1 03-15-2005 09:17 PM
help with installing Gnu C compiler little_arab Mandriva 1 04-01-2004 12:45 PM
Where to get compiler gnu c sofasurfer Linux - Games 1 01-11-2004 01:25 AM
GNU gcc 3 compiler Craneology Linux - Software 3 03-04-2003 04:35 AM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
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