xcode 什么是 osx 上的 config.log 以及它在哪里?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8721779/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is config.log on osx and where does it live?
提问by dgmstuart
Can anyone explain what 'configure' is and does, where the config.log
file can be found in general?
任何人都可以解释“配置”是什么以及做什么,一般在哪里config.log
可以找到文件?
This is in relation to a specific problem ( gcc not working - Xcode 3.2.6 - Snow Leopard) but I thought this question might be of more general interest:
这与特定问题有关(gcc 不工作 - Xcode 3.2.6 - Snow Leopard)但我认为这个问题可能更普遍:
When trying to install rubies with RVM, and I think possibly anything involving Xcode's gcc compiler, or possibly even more general than that, if there are errors then the logs usually refer to a config.log
file. E.g. in my /yaml/configure.log
I get:
当尝试使用 RVM 安装 rubies 时,我认为可能涉及 Xcode 的 gcc 编译器的任何内容,或者甚至可能比这更通用,如果出现错误,则日志通常会引用一个config.log
文件。例如在我的/yaml/configure.log
我得到:
configure: error: in `/Users/duncanstuart/.rvm/src/yaml-0.1.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Googling around suggests that this file is specific to the package being installed, but various posts give a number of different locations, none of which exist on my machine - e.g. Error installing PostgreSQL on Mac OS X 10.5 using MacPortssays it's somewhere under /opt/local/var/
谷歌搜索表明该文件特定于正在安装的软件包,但各种帖子给出了许多不同的位置,在我的机器上都不存在 - 例如,使用 MacPorts 在 Mac OS X 10.5 上安装 PostgreSQL 时出错说它在某处/opt/local/var/
Can't install Ruby under Lion with RVM – GCC issuescontains an example config.log
which says:
无法在带有 RVM 的 Lion 下安装 Ruby – GCC 问题包含一个示例config.log
,其中说:
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
该文件包含编译器在运行 configure 时产生的任何消息,以在 configure 出错时帮助调试。
采纳答案by Flexo
configure
is part of a common source package layout - it's usually responsible for inspecting the target system and seeing what compilers, syscalls, libraries etc. are available on it. Using this information features are then enabled/disabled at build time.
configure
是通用源包布局的一部分 - 它通常负责检查目标系统并查看其上可用的编译器、系统调用、库等。然后在构建时启用/禁用使用此信息功能。
Often (thought not always) it is automatically generated by autoconf from configure.ac (or configure.in).
通常(并非总是如此)它是由 autoconf 从 configure.ac(或 configure.in)自动生成的。
config.log is used to store the results of tests - this can be useful to developers or to try and figure out why some optional feature was not built. It's stored in the current directory, at the time configure was called, thus for "in tree" builds it would be found at /Users/duncanstuart/.rvm/src/yaml-0.1.4 (or possibly a directory or two up if there was a sub directory being configured).
config.log 用于存储测试结果 - 这对开发人员或尝试找出未构建某些可选功能的原因很有用。它存储在当前目录中,在调用 configure 时,因此对于“树中”构建,它将在 /Users/duncanstuart/.rvm/src/yaml-0.1.4(或者可能是一两个目录,如果正在配置一个子目录)。