LinuxQuestions.org
Register a domain and help support LQ
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, 03: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, 01:13 AM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
You need to install the g++ or gcc-c++ package....the names can vary.
 
Old 03-22-2008, 03: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, 03:35 AM   #4
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

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

Original Poster
Rep: Reputation: Disabled
I Couldnot Get U...
 
Old 03-22-2008, 06: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, 09:21 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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, 10: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, 11: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, 12:19 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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, 03:12 PM   #11
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 57
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


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


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