2013-05-03 53 views
7

我完全不熟悉Homebrew和Anaconda安装,希望在执行brew医生后有人能帮我解决警告。我正在使用Snow Leopard 10.6.8。警告如下:提示brew医生时现有的配置脚本

Warning: "config" scripts exist outside your system or Homebrew directories. 
`./configure` scripts often look for *-config scripts to determine if 
software packages are installed, and what additional flags to use when 
compiling and linking. 

Having additional scripts in your path can confuse software installed via 
Homebrew if the config script overrides a system or Homebrew provided 
script of the same name. We found the following "config" scripts: 

    /Users/user.name/anaconda/bin/freetype-config 
    /Users/user.name/anaconda/bin/libpng-config 
    /Users/user.name/anaconda/bin/libpng15-config 
    /Users/user.name/anaconda/bin/llvm-config 
    /Users/user.name/anaconda/bin/python-config 
    /Users/user.name/anaconda/bin/python2-config 
    /Users/user.name/anaconda/bin/python2.7-config 
    /Users/user.name/anaconda/bin/xml2-config 
    /Users/user.name/anaconda/bin/xslt-config 

我执行酿造--config和下面显示的配置(希望它可以帮助瓦特/问题):

HOMEBREW_VERSION: 0.9.4 
ORIGIN: (none) 
HEAD: (none) 
HOMEBREW_PREFIX: /usr/local 
HOMEBREW_CELLAR: /usr/local/Cellar 
CPU: dual-core 64-bit penryn 
OS X: 10.6.8-i386 
Xcode: 3.2.6 
GCC-4.0: build 5494 
GCC-4.2: build 5666 
LLVM-GCC: build 2335 
Clang: 1.7 build 77 
X11: 2.7.4 => /opt/X11 
System Ruby: 1.8.7-358 
Perl: /usr/bin/perl 
Python: /Users/user.name/anaconda/bin/python 
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 

真的很感谢你的帮助。谢谢。

回答

1

TL;博士:你不能真正解决这个问题,但你也许可以忽略它

在-config结束对于要在安装期间链接到他们的其他软件包提供的信息这些脚本。以libpng为例。如果brew(或者其他东西)编译依赖于libpng的包,它可能会执行libpng-config来查找关于该库的一些细节。

问题是brew带来了它自己的libpng版本,所以如果两者都安装了brew,安装额外的软件时可能会选错libpng-config

你可以做的,现在四两件事之一:

  1. 忽略警告,如果你相信,你有自制软件安装的东西,不会随水蟒的东西发生冲突。

  2. 编辑您的~/.bash_profile并从PATH中删除anaconda。如果你这样做,你将不得不在每次你想运行anaconda python时指定完整的路径。

  3. 将这些anaconda配置文件放在一旁(出于您的PATH,例如,转入config子目录)。这可能会阻止其他软件链接到anaconda组件,但如果您打算隔离anaconda,则应该可以。

  4. 完全删除anaconda(只是删除文件夹)并安装brew的python版本。这也会给你这应该很容易重新安装anaconda附带的大部分其他软件包。

    brew install python 
    

    然后安装例如numpy的,简单地说:

    pip install numpy 
    

    (为了使酿造的蟒蛇默认添加export PATH="/usr/local/bin:$PATH"~/.bash_profile