checking whether build environment is sane... yes
时间: 2024-01-06 11:07:04 浏览: 46
这是 `configure` 命令的输出之一,它正在检查构建环境是否合适,并为构建设置一些参数。在这个命令中,这一行输出的是:
- `checking whether build environment is sane`: 检查构建环境是否健康。
这一行的输出结果是:
- `yes`: 构建环境被判定为健康,这意味着所有必需的工具和库已经安装,并且构建所需的文件和目录都存在。
相关问题
checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for x86_64-w64-mingw32-strip... no checking for strip... strip checking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking whether to enable maintainer-specific portions of Makefiles... no
这是`configure`命令的输出,它正在检查构建环境是否合适,并为构建设置一些参数。在这个命令中,你设置了以下选项:
- `--enable-maintainer-specific`: 这个选项将启用维护者特定部分的Makefile,但输出显示你已经禁用了这个选项,因此不会启用维护者特定部分的Makefile。
- `--with-gmp`: 这个选项将启用GMP库的支持,但这个输出没有显示这个选项是否被启用。这可能是因为这个选项不是必需的,或者你已经在之前的输出中看到了相关的信息。
其余的输出是`configure`命令在检查构建环境时输出的信息,比如是否有必要构建维护者特定的部分,是否有一个合适的安装程序等等。
checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... no checking whether make supports nested variables... no checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/userdata/bc-1.07.1': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details。这是什么意思
这个错误通常是由于没有安装C编译器或无法找到C编译器而导致的。编译C程序需要使用C编译器来将源代码编译为可执行程序。在您的情况下,configure 脚本无法找到合适的 C 编译器,因此导致了这个错误。
您需要安装一个 C 编译器,例如 gcc。如果您使用的是 Debian 或 Ubuntu 等基于 Debian 的发行版,可以使用以下命令安装 gcc:
```
sudo apt-get install gcc
```
如果您使用的是 Red Hat 或 CentOS 等基于 Red Hat 的发行版,可以使用以下命令安装 gcc:
```
sudo yum install gcc
```
安装完编译器后,您需要将其添加到 $PATH 环境变量中。您可以在终端中输入以下命令,将 gcc 添加到 $PATH 中:
```
export PATH=$PATH:/usr/bin
```
然后再次运行 configure 脚本,应该就可以找到 C 编译器并继续编译了。如果问题仍然存在,查看 config.log 文件,它将提供更详细的错误信息。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)