我是靠谱客的博主 老实大雁,这篇文章主要介绍gcc: error trying to exec 'cc1plus': execvp: No such file or directory,现在分享给大家,希望可以做个参考。

出现这个错误的主要原因是,gcc和g++ 版本不兼容


apt-get install gcc-4.4

apt-get install g++-4.4


update-alternatives --install  /usr/bin/g++  g++ /usr/bin/g++-4.4 40

update-alternatives --install  /usr/bin/g++  g++ /usr/bin/g++-4.7 40

update-alternatives --config g++


配置即可

转载于:https://blog.51cto.com/sunzeduo/1288242

最后

以上就是老实大雁最近收集整理的关于gcc: error trying to exec 'cc1plus': execvp: No such file or directory的全部内容,更多相关gcc:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部