LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   c++ Compile Errors (https://www.linuxquestions.org/questions/linux-newbie-8/c-compile-errors-4175444584/)

smithsonite 01-07-2013 07:08 PM

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.

suicidaleggroll 01-07-2013 07:30 PM

What distro are you running?

smithsonite 01-07-2013 07:44 PM

Sorry I did not mention that.

Red Hat Enterprise Linux Client release 5.7 (Tikanga)

suicidaleggroll 01-07-2013 08:17 PM

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?

smithsonite 01-08-2013 06:40 PM

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.


All times are GMT -5. The time now is 01:47 AM.