mingw-w64-build: command not found
时间: 2023-08-02 20:09:14 浏览: 194
如果你在终端中输入`mingw-w64-build --help`时出现`command not found`的错误,可能是因为你没有安装`mingw-w64-build`工具。你需要先安装`mingw-w64-build`工具,然后才能使用它来构建MinGW-w64工具链。
你可以通过以下方法安装`mingw-w64-build`工具:
1. 在Linux或MacOS上,你可以使用包管理器安装`mingw-w64-build`,例如:
- 在Ubuntu或Debian中,你可以使用以下命令安装:
```
sudo apt-get install mingw-w64-build
```
- 在Fedora中,你可以使用以下命令安装:
```
sudo dnf install mingw-w64-build
```
- 在MacOS中,你可以使用Homebrew安装:
```
brew install mingw-w64-build
```
2. 在Windows上,你可以从`mingw-w64-build`的GitHub仓库下载二进制文件,并将其添加到系统PATH环境变量中。
安装完成后,你应该能够在终端中运行`mingw-w64-build`命令。
相关问题
报错mingw-w64-build: command not found
The error "mingw-w64-build: command not found" typically indicates that the mingw-w64-build command is not installed on your system or it is not in the PATH environment variable.
To fix this issue, you can try the following steps:
1. Install mingw-w64-build: If mingw-w64-build is not installed on your system, you can install it using a package manager such as apt-get or yum. For example, on Ubuntu, you can use the following command to install it:
```
sudo apt-get install mingw-w64-tools
```
2. Add mingw-w64-build to PATH: If mingw-w64-build is installed, but the command is still not recognized, you may need to add the directory containing the mingw-w64-build executable to your PATH environment variable. You can do this by adding the following line to your shell profile file (e.g., ~/.bashrc, ~/.zshrc):
```
export PATH=$PATH:/path/to/mingw-w64-build
```
Make sure to replace "/path/to/mingw-w64-build" with the actual path to the directory containing the mingw-w64-build executable.
After following these steps, try running the mingw-w64-build command again to see if the issue has been resolved.
make: gcc: command not found
这意味着您的系统上没有安装 GCC 编译器。您需要安装 GCC 来编译程序。在 Linux 系统上可以使用包管理器安装 GCC,例如在 Ubuntu 中使用 "sudo apt-get install build-essential" 命令。在 Windows 中可以安装 Mingw。
阅读全文