g++:尝试执行“cc1plus"时出错:execvp:没有这样的文件或目录 [英] g++: error trying to exec 'cc1plus': execvp: No such file or directory

查看:47
本文介绍了g++:尝试执行“cc1plus"时出错:execvp:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 ubuntu 12.04.我正在尝试制作"一个项目.

I am using ubuntu 12.04. I'm trying to "make" a project.

我收到此错误:

g++: error trying to exec 'cc1plus': execvp: No such file or directory

我已经安装了 g++.

I have g++ installed.

推荐答案

我尝试了@MonoThreaded 给出的命令,但它失败了.我在下面尝试过,它可以工作.

I tried the command @MonoThreaded gave but it failed. I tried below and it works.

sudo apt-get install g++

请不要在 g++ 之后包含任何版本.

Please don't include any version after the g++.

这篇关于g++:尝试执行“cc1plus"时出错:execvp:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆