c - fatal error : cannot execute 'as' : execvp: no such file or directory

标签 c gcc compiler-errors compilation execvp

每当我尝试编译 c/cpp 文件时,它都会出现此错误:

gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory
compilation terminated.

我也尝试在编译时包含文件的完整路径,但发生了同样的错误。 为了确定版本不匹配,我同时查找了 gcc 和 g++ 版本,但两者都相同, gcc/g++ 版本:9.1.0。

我该如何解决这个问题?

最佳答案

as 命令来自 binutils。你有没有安装这个包?

关于c - fatal error : cannot execute 'as' : execvp: no such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56801179/

相关文章:

C 服务器和客户端之间的发送功能不起作用

c - 在代码块中使用 #include ""指令时出错

gcc - 为什么我不能使用GCC编译ARM BE8 ELF?

c++ - Linked List no match for operator* 编译器错误

c - C中常量指针和常量指针的区别

C字符串插值

c - @zero_extendqisi2 的含义

c - pthread_create() 的返回码是 11

compiler-errors - 在集群上构建Guile-2.2.2时出错

c# - 如何委托(delegate)正确的 Action<Interface>?