LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc: error trying to exec 'cc1plus': execvp: No such file or directory- Fedora 10 (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-error-trying-to-exec-cc1plus-execvp-no-such-file-or-directory-fedora-10-a-716507/)

AtmoHawk03 04-03-2009 12:31 AM

gcc: error trying to exec 'cc1plus': execvp: No such file or directory- Fedora 10
 
Hello all,

I've been trying to run the ./configure command to compile a few programs, but I was having trouble with not having a c++ compiler. After installing gcc, I decided to test it by making a small simple c++ program. I put the program on my Desktop, open my Desktop folder in terminal, and type "gcc test.cpp" and it returns:

Code:

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Now, I did a few google searches, but the only returns I got were concerning Ubuntu. I tried a few suggestions that were offered (namely trying to install g++) however I was unable to find g++ on yum. Could anyone offer any suggestions please?

Thanks very much.

jdkaye 04-03-2009 02:23 AM

You need to install a g++ package. I don't know what distro you're using so I can't tell you exactly which one. It will probably be one of: g++-4.1 g++-4.2 g++-4.3
cheers,
jdk

knudfl 04-03-2009 07:34 AM

The package name is 'gcc-c++'

# yum install gcc-c++

( And # 'yum search ... ' is not very helpful
with finding the package name.)
.....

AtmoHawk03 04-03-2009 06:59 PM

This worked. Thank you!

jsjdoyle 09-17-2013 08:19 AM

Quote:

Originally Posted by knudfl (Post 3497162)
The package name is 'gcc-c++'

# yum install gcc-c++

( And # 'yum search ... ' is not very helpful
with finding the package name.)
.....

This fixed the problem for me also - Thanks!

jdkaye 09-17-2013 12:25 PM

I'm happy to hear it. Note that this thread is over 4 years old.
jdk


All times are GMT -5. The time now is 06:47 PM.