尝试执行"as"时出错:execvp:没有此类文件或目录 [英] error trying to exec 'as': execvp: No such file or directory

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

问题描述

尝试构建时出现此错误:

When trying to build I get this error:

$ make CC=i686-w64-mingw32-gcc
  CC    aes.c
i686-w64-mingw32-gcc: error trying to exec 'as': execvp: No such file or directory

推荐答案

PATH 设置为/usr/bin 而不是/bin

有一个已知警告,其中直接调用编译器为/bin/x86_64-w64-mingw32-gcc 将失败,请使用改为/usr/bin/x86_64-w64-mingw32-gcc 并确保您的 PATH 变量在/bin 之前具有/usr/bin .

There is a known caveat where calling the compiler directly as /bin/x86_64-w64-mingw32-gcc will fail, use /usr/bin/x86_64-w64-mingw32-gcc instead and make sure that your PATH variable has /usr/bin before /bin.

mingw-w64.sourceforge.net

这是由安装问题引起的.在Linux上,您有/bin /usr/bin ,没什么大不了的.在Cygwin上,您有 C:\ cygwin \ bin .然后,将挂载点设置为这样.

This is caused by a mounting problem. On linux you have /bin and /usr/bin, no big deal. On Cygwin you have C:\cygwin\bin. Then mount points are set like this.

C:\cygwin\bin on /usr/bin
C:\cygwin on /

因此,从技术上讲,您可以用/bin /usr/bin 表示 C:\ cygwin \ bin ,尽管如上所述将无法正常工作.

So technically you could represent C:\cygwin\bin with /bin or /usr/bin, although as stated above the former will not work.

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

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