arm-ostl-linux-gnueabi-strip:未找到命令 arm-none-linux-gnueabi-strip:nginx: File format not recognized
时间: 2023-08-31 14:09:26 浏览: 79
这个错误可能是由于缺少 `strip` 命令导致的。`strip` 命令是用于删除二进制文件中的符号表和调试信息,从而减小文件大小的工具。在某些 Linux 发行版中,这个命令可能没有默认安装。你可以尝试通过以下命令安装:
```
sudo apt-get install binutils
```
如果已经安装了 `binutils` 但仍然无法使用 `strip` 命令,则可能需要添加 `binutils` 所在的路径到环境变量中。你可以使用以下命令查找 `strip` 命令的路径:
```
which strip
```
然后将输出的路径添加到环境变量中,例如:
```
export PATH=$PATH:/usr/bin
```
如果还是无法解决问题,那么可能是由于交叉编译的问题导致的。你可以尝试使用交叉编译工具链中的 `strip` 命令,例如:
```
arm-linux-gnueabi-strip nginx
```
其中 `arm-linux-gnueabi-strip` 是交叉编译工具链中的 `strip` 命令。也可以尝试使用其他交叉编译工具链中的 `strip` 命令。
相关问题
arm-poky-linux-gnueabi-strip:nginx: File format not recognized
This error message indicates that the file format of the "nginx" binary is not recognized by the "arm-poky-linux-gnueabi-strip" tool.
There could be several reasons for this error, including:
1. The "nginx" binary may be corrupted or incomplete.
2. The "arm-poky-linux-gnueabi-strip" tool may not be compatible with the version of the "nginx" binary.
3. The "nginx" binary may be compiled for a different CPU architecture or operating system.
To resolve this issue, you can try the following steps:
1. Make sure that the "nginx" binary is a valid executable file and is not corrupted or incomplete.
2. Check the compatibility of the "arm-poky-linux-gnueabi-strip" tool with the version of the "nginx" binary.
3. Ensure that the "nginx" binary is compiled for the same CPU architecture and operating system as the target device.
4. Try using a different version of the "arm-poky-linux-gnueabi-strip" tool or a different tool for stripping binaries.
arm-ostl-linux-gnueabi-strip:未找到命令
这个错误提示意味着在你的 Linux 系统上没有找到 `strip` 命令。`strip` 命令用于从可执行文件和共享库中删除符号表和调试信息,以减小文件大小。
要解决这个问题,你需要安装 `binutils` 软件包,其中包含了 `strip` 命令。在 Ubuntu 系统上,可以使用以下命令安装:
```
sudo apt-get update
sudo apt-get install binutils
```
如果你使用的是其他 Linux 发行版,请使用相应的包管理器来安装 `binutils` 软件包。