LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-21-2008, 02:32 PM   #1
satti
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: Disabled
error when i type gcc in my terminal


when ever i type gcc in my terminal it is giving "error trying to exec 'cc1plus': execvp: No such file or directory". I have fedora core on my pc that too on VMware virtual workstation. ANY SUGGESTIONS PLZ....
 
Old 03-22-2008, 12:13 AM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
You need to install the g++ or gcc-c++ package....the names can vary.
 
Old 03-22-2008, 02:27 AM   #3
satti
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: Disabled
thnks for the infoo but being the beginner of it can i have the steps of doin it???
 
Old 03-22-2008, 02:35 AM   #4
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
what distro are you using?
 
Old 03-22-2008, 05:25 AM   #5
satti
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: Disabled
I Couldnot Get U...
 
Old 03-22-2008, 05:30 AM   #6
satti
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: Disabled
i think i have got gcc with me when i type gcc --version in myu terminal it says gcc (GCC) 4.1.2 20070925 (redhat 4.1.2-33......................
 
Old 03-22-2008, 08:21 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by satti View Post
I Couldnot Get U...
What does this mean???

Please describe what you are trying to do. The "gcc" command requires a filename.

If you are compiling something that you downloaded, it would be more common to compile it with the "make" command.
 
Old 03-22-2008, 09:56 AM   #8
satti
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: Disabled
noo i am trying to compile a simple cpp program.... written by me...
i get the error when i type gcc a.cpp
did i miss any package installation???
 
Old 03-22-2008, 10:33 AM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
You should do what Xian said you should,so open your package manager,search for gcc,then install everything related to gcc-c++ or gcc-cpp or similar.
 
Old 03-22-2008, 11:19 AM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by satti View Post
I Couldnot Get U...
Which distribution of Linux are you using?
In short: what distro?

And please, don't use SMSish on the boards.


Cheers,
Tink
 
Old 03-22-2008, 02:12 PM   #11
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by satti View Post
noo i am trying to compile a simple cpp program.... written by me...
i get the error when i type gcc a.cpp
did i miss any package installation???
you need g++ to compile c++ programs, usually
 
  


Reply



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
incomplete type error using cpp with gcc aatwell Programming 8 11-04-2007 11:12 AM
GCC Make error on Solarias 2.8: libc.a unknown file type vinaybms Solaris / OpenSolaris 1 06-20-2005 01:56 AM
how to type in terminal? DMZeplin Fedora 5 02-15-2005 02:00 PM
Can't type password in terminal ts77351 Linux - General 1 06-12-2004 07:21 PM
unknown terminal type BroX Linux - Networking 0 06-02-2004 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:42 AM.

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
Open Source Consulting | Domain Registration