osx上的config.log是什么?它存放在哪里? [英] What is config.log on osx and where does it live?

查看:638
本文介绍了osx上的config.log是什么?它存放在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释什么是配置"吗?通常可以在哪里找到config.log文件?

Can anyone explain what 'configure' is and does, where the config.log file can be found in general?

这与特定问题有关( gcc并非正常工作-Xcode 3.2.6-Snow Leopard ),但我认为这个问题可能更具普遍意义:

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:

当尝试使用RVM安装ruby时,我认为可能涉及Xcode的gcc编译器,甚至可能涉及更一般的内容,如果有错误,则日志通常引用config.log文件.例如.在我的/yaml/configure.log中,我得到了:

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:

configure: error: in `/Users/duncanstuart/.rvm/src/yaml-0.1.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

谷歌搜索表明该文件特定于要安装的软件包,但是各种帖子给出了许多不同的位置,我的计算机上都不存在这些位置-例如, 在使用MacPorts的Mac OS X 10.5上安装PostgreSQL时出错说它在/opt/local/var/

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 MacPorts says it's somewhere under /opt/local/var/

无法在带有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是常见源程序包布局的一部分-它通常负责检查目标系统并查看可使用的编译器,syscall,库等.它.然后,使用这些信息功能可以在构建时启用/禁用.

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.

通常(并非总是如此),它是由autoconf从configure.ac(或configure.in)自动生成的.

Often (thought not always) it is automatically generated by autoconf from configure.ac (or configure.in).

config.log用于存储测试结果-这对开发人员很有用,或者试图弄清楚为什么未构建某些可选功能的原因.它存储在当前目录中,在调用configure时,因此对于在树中"构建,可以在/Users/duncanstuart/.rvm/src/yaml-0.1.4中找到(如果可能,则为一个或两个以上目录)有一个正在配置的子目录.

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).

这篇关于osx上的config.log是什么?它存放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆