checking for a BSD-compatible install... /usr/bin/install -c
时间: 2023-12-24 12:06:08 浏览: 215
这行信息表示 configure 脚本检查了系统中是否存在一个 BSD-compatible 的 install 命令,并找到了 /usr/bin/install -c。这个命令通常用于将文件或目录复制到指定目录中。在安装 Mingw-w64 C 运行库时,configure 脚本将使用这个命令来将编译好的库文件复制到指定的安装目录中。
相关问题
[root@192 samtools-1.17]# ./configure checking for gawk... gawk checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for grep that handles long lines and -e... /usr/bin/grep checking for C compiler warning flags... -Wall checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking location of HTSlib source tree... htslib-1.17 checking for NcursesW wide-character library... yes checking for working ncursesw/curses.h... yes checking for library containing cbreak... none required checking for zlib.h... no checking for inflate in -lz... no configure: error: zlib development files not found
根据你提供的信息,编译 `samtools-1.17` 时出现了错误。错误信息显示缺少 zlib 的开发文件。
在 CentOS 7 上安装 zlib 的开发文件,可以使用以下命令:
```
sudo yum install zlib-devel
```
然后重新运行 `./configure` 命令进行配置和编译。如果还有其他缺少的依赖项,也可以通过相应的包名在系统中安装它们。
注意:你可能需要具有管理员权限(使用 `sudo`)来执行安装命令。
checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -std=gnu11 -E checking for x86_64-w64-mingw32-ranlib... no checking for ranlib... ranlib checking for x86_64-w64-mingw32-dlltool... no checking for dlltool... no checking for x86_64-w64-mingw32-ar... no checking for x86_64-w64-mingw32-lib... no checking for x86_64-w64-mingw32-link... no checking for ar... ar checking the archiver (ar) interface... ar checking dependency style of gcc -std=gnu11... gcc3 checking for x86_64-w64-mingw32-as... no checking for as... as checking whether dlltool supports --temp-prefix... yes checking whether to build a w32api package for Cygwin... no checking whether to build the Win32 libraries... yes checking whether to build the Win64 libraries... yes checking whether to build the WinARM32 libraries... no checking whether to build the WinARM64 libraries... no checking whether to use genlib... no checking whether to enable globbing... no checking whether to enable private exports... no checking whether to enable delay import libs... no checking what to provide as libmsvcrt.a... msvcrt-os checking whether to include support for Control Flow Guard... no checking whether to enable experimental features... no checking whether the compiler supports -municode... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for _mingw_mac.h... no
这些都是 configure 脚本在检查编译器及相关工具是否存在和支持特定的选项和功能。其中包括:
- 检查编译器是否支持 C++11 特性,检查是否需要特定的选项来启用这些特性;
- 检查 gcc 的依赖风格;
- 检查 C 预处理器的运行方式;
- 检查是否存在 x86_64-w64-mingw32-ranlib、x86_64-w64-mingw32-dlltool、x86_64-w64-mingw32-ar、x86_64-w64-mingw32-lib、x86_64-w64-mingw32-link 和 as 等工具,如果不存在,则检查是否存在对应的 ranlib、dlltool、ar 和 as 工具;
- 检查 dlltool 是否支持 --temp-prefix 选项;
- 检查是否需要为 Cygwin 构建 w32api 包;
- 检查是否需要构建 Win32、Win64、WinARM32 和 WinARM64 库;
- 检查是否需要使用 genlib 工具;
- 检查是否需要启用 globbing、private exports 和 delay import libs 等功能;
- 检查是否支持 Control Flow Guard;
- 检查编译器是否支持 -municode 选项;
- 检查是否存在 stdio.h、stdlib.h、string.h、inttypes.h、stdint.h、strings.h、sys/stat.h、sys/types.h、unistd.h 和 _mingw_mac.h 等头文件。
这些检查是为了确保编译器和工具链的完整性和正确性,以便在进行编译和链接操作时能够顺利地进行。
阅读全文