本文介绍了GCC错误:gcc:错误尝试执行'cc1':execvp:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Linux Mint 12上成功使用了gcc。现在我收到一个错误消息。我最近一直在做一些.so构建和安装Clang不久之前,但已成功编译,因为这两个事件,所以不知道有什么变化。我使用GUI软件管理器删除并再次安装gcc,但结果相同:
在debian / ubuntu上,我通过重新安装 build-essential 来解决这个问题:
sudo apt-get update $ b $ sudo apt-get install --reinstall build-essential
I have been successfully using gcc on Linux Mint 12. Now I am getting an error. I have recently been doing some .so builds and installed Clang not to long ago, but have successfully compiled since both of those events, so not sure what has changed. I used the GUI Software Manager to remove and then install gcc again, but the results are the same:
~/code/c/ut: which gcc /usr/bin/gcc ~/code/c/ut: gcc -std=c99 -Wall -Wextra -g -c object.c gcc: error trying to exec 'cc1': execvp: No such file or directory解决方案On debian / ubuntu I fixed this problem by reinstalling build-essential:
sudo apt-get update sudo apt-get install --reinstall build-essential
这篇关于GCC错误:gcc:错误尝试执行'cc1':execvp:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!