制作,错误127 [英] Make, error 127
问题描述
所以,在这个学期里,我得到了这个新的主题,我们可以与Discovery STM32 F4一起工作,而且我们仍处于设置阶段。但是我在开始时遇到了这个问题。
当我尝试编译这个blink代码时,我得到这个错误:
错误127
设置
任何人都可以看到这里有什么问题吗?
错误127 表示以下两种情况之一:
未找到- 文件:您使用的路径不正确。仔细检查程序是否在你的
$ PATH
中,或者在这种情况下,相对路径是正确的 - 记住随机终端的当前工作目录可能不是对于您使用的IDE也是如此。取而代之的是使用绝对路径可能更好。 找不到ldso:您正在使用预编译的二进制文件,并且它想要一个不在系统上的解释器。也许你使用的是x86_64(64位)发行版,但预构建的是x86(32位)。您可以通过打开终端并尝试直接执行它来确定这是否是答案。或者通过在
/ bin / sh
(以获得默认/本机格式)和编译器上运行 file -L
本身(看看它是什么格式)。如果问题是(2),那么你可以用几个diff来解决它。 方式:
- 得到一个更好的二进制文件。与提供工具链的供应商交谈,并要求他们提供不吸引人员。
- 查看您的发行版是否可以安装multilib文件集。大多数x86_64 64位发行版允许您并行安装x86 32位库。
- 使用类似于 crosstool-ng 。
- 你可以在x86_64& x86安装,但看起来有点激烈;)。
I'd like to warn you first that my knowledge on this subject is very poor, I guess, so don't go too hard on me, please.
So, in this semester I got this new subject where we get to work with Discovery STM32 F4, and we are still in the phase of setting it up. But I have this problem in the beginning.
When I try to compile this "blink" code I get this error: Error 127
So, as I got it so far, we are using this shortcut command "make" to compile code, and we were given instruction to set it up as it's shown in images below: setup
Can anyone see what's the problem here?
Error 127
means one of two things:
- file not found: the path you're using is incorrect. double check that the program is actually in your
$PATH
, or in this case, the relative path is correct -- remember that the current working directory for a random terminal might not be the same for the IDE you're using. it might be better to just use an absolute path instead. - ldso is not found: you're using a pre-compiled binary and it wants an interpreter that isn't on your system. maybe you're using an x86_64 (64-bit) distro, but the prebuilt is for x86 (32-bit). you can determine whether this is the answer by opening a terminal and attempting to execute it directly. or by running
file -L
on/bin/sh
(to get your default/native format) and on the compiler itself (to see what format it is).
if the problem is (2), then you can solve it in a few diff ways:
- get a better binary. talk to the vendor that gave you the toolchain and ask them for one that doesn't suck.
- see if your distro can install the multilib set of files. most x86_64 64-bit distros allow you to install x86 32-bit libraries in parallel.
- build your own cross-compiler using something like crosstool-ng.
- you could switch between an x86_64 & x86 install, but that seems a bit drastic ;).
这篇关于制作,错误127的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!