LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-03-2009, 01:31 AM   #1
AtmoHawk03
LQ Newbie
 
Registered: Mar 2009
Distribution: Fedora 11
Posts: 15

Rep: Reputation: 1
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.
 
Old 04-03-2009, 03:23 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,953

Rep: Reputation: Disabled
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
 
Old 04-03-2009, 08:34 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,262

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
The package name is 'gcc-c++'

# yum install gcc-c++

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

Last edited by knudfl; 04-03-2009 at 08:38 AM.
 
1 members found this post helpful.
Old 04-03-2009, 07:59 PM   #4
AtmoHawk03
LQ Newbie
 
Registered: Mar 2009
Distribution: Fedora 11
Posts: 15

Original Poster
Rep: Reputation: 1
This worked. Thank you!
 
1 members found this post helpful.
Old 09-17-2013, 09:19 AM   #5
jsjdoyle
LQ Newbie
 
Registered: May 2013
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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!
 
Old 09-17-2013, 01:25 PM   #6
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,953

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


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
unable to exec gcc.real: No such file or directory twwwater Ubuntu 4 02-09-2009 11:17 PM
gcc: installation problem, cannot exec `as': No such file or directory ERROR jaisol Slackware 8 08-05-2006 01:01 PM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Programming 2 07-20-2006 12:44 PM
gcc: installation problem, cannot exec `cc1': No such file or directory natsirc Linux - General 3 11-11-2004 10:26 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Linux - Newbie 1 06-01-2004 05:26 AM


All times are GMT -5. The time now is 11:57 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