简体   繁体   English

配置:错误:C编译器无法创建可执行文件(OSX El Capitan)

[英]Configure: error: C compiler cannot create executables (OSX El Capitan)

I'm trying to install some software on my Mac (OS X El Capitan 10.11) and when running its configure script, I'm getting a message that it cannot create executables. 我正在尝试在Mac(OS X El Capitan 10.11)上安装某些软件,并且在运行其配置脚本时,收到一条消息,提示它无法创建可执行文件。 I'm passing: 我通过:

../configure \
--disable-diablo \
--download-essential  \
CC=/usr/local/bin/mpicc  \
CXX=/usr/local/bin/mpicxx  \
F77=/usr/local/bin/mpif77  \
FC=/usr/local/bin/mpif90  \

from a build directory. 从构建目录。 I had to specify where the compilers are located as it would also return an error if I didn't. 我必须指定编译器的位置,因为如果不这样做,它还会返回错误。 Also, I am very new to this material so I would like to ask for a bit of patience if I take a while to understand whatever help is sent my way. 另外,我对此材料还很陌生,所以如果我花一点时间来了解以何种方式发送的帮助,请耐心等待。

Also, I'm having trouble posting my config.log, so help with that would be appreciated as well. 另外,我在发布config.log时遇到麻烦,因此也将提供帮助。

This error usually means that the compiler failes a simple test of compiling a test code and running the resulting binary. 此错误通常意味着编译器无法通过编译测试代码并运行生成的二进制文件的简单测试。 You are trying to use mpicc to compile your project (is it necessary?) and it is only a wrapper for regular compiler, You have to have gcc or clang already in the system. 您正在尝试使用mpicc编译项目(是否有必要?),它只是常规编译器的包装器,因此系统中必须已经有gcc或clang。

The easiest way to get all "Command line tools" including clang for macOS is to just install XCode and follow with xcode-select --install in terminal. 获取所有“命令行工具”(包括适用于macOS的clang)的最简单方法是仅安装XCode,然后在终端中执行xcode-select --install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 配置:错误:C 编译器无法在 buildozer kivy 中创建可执行文件 - configure: error: C compiler cannot create executables in buildozer kivy 配置:错误:C 编译器无法在 mac os 终端中创建可执行文件 - configure: error: C compiler cannot create executables in mac os terminal 配置:错误:安装或配置 — C 编译器无法创建可执行文件 - configure: error: installation or configuration — C compiler cannot create executables 配置:错误:C 编译器无法创建可执行文件 - Mac Sierra - configure: error: C compiler cannot create executables - Mac Sierra 配置:错误:C 编译器无法创建可执行文件(macOS:Big Sur) - configure: error: C compiler cannot create executables (macOS: Big Sur) HDF-EOS配置失败,“ C编译器无法创建可执行文件” - HDF-EOS configure fails, “C compiler cannot create executables” configure:error:C编译器在安装Ruby 1.9.3时无法创建可执行文件 - configure: error: C compiler cannot create executables when installing Ruby 1.9.3 从源代码构建gcc 5.2.0:配置:错误:C编译器无法创建可执行文件 - building gcc 5.2.0 from source: configure: error: C compiler cannot create executables PHP PDO_ODBC configure:错误:C编译器无法创建可执行文件 - PHP PDO_ODBC configure: error: C compiler cannot create executables C编译器无法创建可执行文件 - C compiler cannot create executables
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM