LinuxQuestions.org
Review your favorite Linux distribution.
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 01-07-2013, 07:08 PM   #1
smithsonite
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
c++ Compile Errors


I receive the following error when compiling c++ code

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Error: child process exited abnormally
Error: gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Error: child process exited abnormally
Error: g++: ./ds_test.o: No such file or directory
Error: g++: ./ds_test_c.o: No such file or directory

I try yum install gcc-c++ (as many have suggested online), this is the feedback from running that;

No package gcc-c++ available.
Nothing to do


I appreciate your help.
 
Old 01-07-2013, 07:30 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,520

Rep: Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106
What distro are you running?
 
Old 01-07-2013, 07:44 PM   #3
smithsonite
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry I did not mention that.

Red Hat Enterprise Linux Client release 5.7 (Tikanga)
 
Old 01-07-2013, 08:17 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,520

Rep: Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106
What is the FULL output from "yum install gcc-c++"? Do you have an active RHEL license?

And what is the command you are running to compile the code?

Last edited by suicidaleggroll; 01-07-2013 at 08:18 PM.
 
1 members found this post helpful.
Old 01-08-2013, 06:40 PM   #5
smithsonite
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
My RH base package did not have gcc-c++. My IT support added a new channel to include the proper package inclusive of gcc-c++.

And now I can compile! Thanks for your help.
 
  


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
compile errors jrella Linux - Software 5 02-02-2010 01:10 AM
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 12:11 AM
c++ compile errors using g++ ttumelty Programming 5 09-08-2005 01:58 PM
compile errors davidleroux1 Programming 4 05-10-2005 10:03 PM
Compile Errors userini Linux - Software 6 07-16-2003 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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