0
我是OSX的新手,想安装postgresql,因为它是我的django首选分贝。homebrew install postgresql问题
我安装了xcode并且可以启动它,这是自制软件的先决条件。 然后我安装了自制软件,并运行brew安装postgresql,得到以下警告和错误。首先我得到一个Xcode没有安装警告,而它肯定是安装的。我认为这个警告的原因是在这篇文章中描述:https://github.com/mxcl/homebrew/issues/2567
下面的追踪。
TK$ brew install postgresql
Warning: Xcode is not installed! Builds may fail!
==> Downloading ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz
File already downloaded and cached to /Users/TK/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file complete.c
patching file patchlevel
patching file readline.h
patching file patchlevel
==> ./configure --prefix=/usr/local/Cellar/readline/6.1 --mandir=/usr/local/Cell
checking build system type... i386-apple-darwin10.7.3
checking host system type... i386-apple-darwin10.7.3
Beginning configuration for readline-6.1 for i386-apple-darwin10.7.3
checking whether make sets $(MAKE)... no
checking for gcc... /usr/bin/cc
checking for C compiler default output file name...
configure: error: in `/private/tmp/homebrew-readline-6.1-3bbC/readline-6.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.
==> Exit Status: 77
http://github.com/mxcl/homebrew/blob/master/Library/Formula/readline.rb#L24
==> Environment
/usr/local/Library/Homebrew/utils.rb:275:in `llvm_build_version': undefined method `/' for "/Developer":String (NoMethodError)
from /usr/local/Library/Homebrew/cmd/--config.rb:9:in `llvm'
from /usr/local/Library/Homebrew/cmd/--config.rb:61:in `config_s'
from /usr/local/bin/brew:116
如果我运行brew-config,则获得以下trackeback。
TK$ brew --config
Error: undefined method `/' for "/Developer":String
Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
/usr/local/Library/Homebrew/utils.rb:275:in `llvm_build_version'
/usr/local/Library/Homebrew/cmd/--config.rb:9:in `llvm'
/usr/local/Library/Homebrew/cmd/--config.rb:61:in `config_s'
/usr/local/Library/Homebrew/cmd/--config.rb:5:in `__config'
/usr/local/bin/brew:82:in `send'
/usr/local/bin/brew:82
任何想法我做错了什么?
Xcode已安装。我可以运行它:)但是在安装时我可能会过多地取消选中一个选项。将重新安装它,看看会发生什么。 – 2011-04-02 17:56:10
您可能需要Unix工具以及我忘记它们是否在Xcode或OS安装 – Mark 2011-04-02 17:58:27
您是对的。我没有在安装中检查Uix的开发,显然是自制软件需要的。谢谢你的帮助。 – 2011-04-02 18:44:39