Dave's Brain

Browse - Programming Tips - Why I am I getting "gcc: error trying to exec 'cc1plus': execvp: No such file or directory" ?

Date: 2010nov4
OS: Linux
Language: C++

Q.  Why I am I getting "gcc: error trying to exec 'cc1plus': execvp: No such file or directory" ?

gcc -g ... -c myfile.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory
A. You are trying to compile a C++ program without the C++ compiler installed. On RedHat/Fedora/CentOS do this:
dnf install gcc-c++

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.