LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   error when i type gcc in my terminal (https://www.linuxquestions.org/questions/linux-general-1/error-when-i-type-gcc-in-my-terminal-629711/)

satti 03-21-2008 02:32 PM

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....

Xian 03-22-2008 12:13 AM

You need to install the g++ or gcc-c++ package....the names can vary.

satti 03-22-2008 02:27 AM

thnks for the infoo but being the beginner of it can i have the steps of doin it???

AceofSpades19 03-22-2008 02:35 AM

what distro are you using?

satti 03-22-2008 05:25 AM

I Couldnot Get U...

satti 03-22-2008 05:30 AM

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......................

pixellany 03-22-2008 08:21 AM

Quote:

Originally Posted by satti (Post 3096739)
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.

satti 03-22-2008 09:56 AM

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???

alan_ri 03-22-2008 10:33 AM

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.

Tinkster 03-22-2008 11:19 AM

Quote:

Originally Posted by satti (Post 3096739)
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

AceofSpades19 03-22-2008 02:12 PM

Quote:

Originally Posted by satti (Post 3096922)
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


All times are GMT -5. The time now is 08:31 AM.