gcc: error trying to exec 'cc1plus': execvp: No such file or directory
时间: 2023-09-26 14:05:16 浏览: 313
This error message indicates that the compiler program "cc1plus" cannot be found or executed by the system. There could be several reasons for this error, such as:
- The compiler program is not installed on the system.
- The path to the compiler program is not set correctly.
- The user does not have the necessary permissions to execute the compiler program.
To resolve this error, you can try the following steps:
- Check if the compiler program is installed on the system, and if not, install it using the package manager of your operating system.
- Check if the path to the compiler program is set correctly by running the command "echo $PATH" in the terminal and verifying if the directory containing the compiler program is included in the output.
- If the user does not have the necessary permissions to execute the compiler program, try running the command with elevated privileges using "sudo".
相关推荐















