checking for a BSD-compatible install... /usr/bin/install -c
这是 configure
命令的输出之一,它正在检查构建环境是否合适,并为构建设置一些参数。在这个命令中,这一行输出的是:
checking for a BSD-compatible install
: 检查是否有一个兼容BSD的install
命令可用。
这一行的输出结果是:
/usr/bin/install -c
: 找到了/usr/bin/install
命令,并使用-c
选项进行了配置。-c
选项告诉install
命令在复制文件时保留原文件的时间戳和权限等属性。
./configure --prefix=/usr/local/mingw-w64 --host=x86_64-w64-mingw32 --enable-lib64 --disable-shared --enable-static 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 -p
这是一个configure命令的输出,它正在检查构建环境是否合适,并为构建设置一些参数。在这个命令中,你设置了以下选项:
--prefix=/usr/local/mingw-w64
:这将设置安装R的路径为/usr/local/mingw-w64
。--host=x86_64-w64-mingw32
:这将设置编译的目标架构为x86_64-w64-mingw32
,也就是Windows的64位架构。--enable-lib64
:这将启用64位库。--disable-shared
:这将禁用共享库的构建。--enable-static
:这将启用静态库的构建。
其余的输出是configure命令在检查构建环境时输出的信息,比如是否有必要构建维护者特定的部分,是否有一个合适的安装程序等等。
请扮演一位资深驱动工程师,解决以下问题:farsight@ubuntu:~/farsight/feng/day8/jpeg-9e$ ./configure --prefix=/usr/local/lib CC=arm-linux-gcc --host=arm-linux --enable-shared --enable-static configure: loading site script /opt/stm32_sdk/site-config-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi checking build system type... x86_64-pc-linux-gnu checking host system type... arm-unknown-linux-gnu checking target system type... arm-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-linux-strip... no checking for strip... strip checking for a race-free mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... no checking for arm-linux-gcc... arm-linux-gcc checking whether the C compiler works... no configure: error: in /home/farsight/farsight/feng/day8/jpeg-9e': configure: error: C compiler cannot create executables See config.log' for more details,请详细说明每一步解决步骤
首先,这个错误提示说 C 编译器无法创建可执行文件,可能是由于环境变量或编译器配置的问题导致的。
第一步,我们需要检查一下 arm-linux-gcc 是否已经正确安装并配置好环境变量。可以通过在终端中输入 arm-linux-gcc 命令来验证。
如果 arm-linux-gcc 没有安装或者环境变量没有配置好,我们需要先安装并配置好 arm-linux-gcc。
第二步,我们需要检查一下配置文件中的 CC 参数是否正确设置为 arm-linux-gcc。这个参数指定了使用的 C 编译器。
第三步,我们需要检查一下是否有 arm-linux-strip 工具。如果没有,我们需要安装 binutils 包,其中包含了 arm-linux-strip 工具。
第四步,我们需要检查一下是否有 gawk 工具。如果没有,我们需要安装 gawk 包。
第五步,我们需要检查一下是否有 strip 工具。如果没有,我们需要安装 binutils 包,其中包含了 strip 工具。
第六步,我们需要检查一下是否有可用的 mkdir -p 命令。如果没有,我们需要安装 coreutils 包,其中包含了 mkdir 命令。
最后,如果上述步骤都没有解决问题,我们需要查看 config.log 文件,里面可能有更详细的出错信息,帮助我们排查问题。
相关推荐














