首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >homebrew安装postgresql问题

homebrew安装postgresql问题
EN

Stack Overflow用户
提问于 2011-04-03 01:36:07
回答 1查看 4.2K关注 0票数 0

我是OSX的新手,我想安装postgresql,因为它是我对django的首选数据库。

我安装了xcode并可以启动它,这是自制软件的先决条件。然后我安装了homebrew并运行brew install postgresql,得到以下警告和错误。首先,我得到了一个Xcode没有安装的警告,而它肯定已经安装了。我认为这篇文章描述了这个警告的原因:https://github.com/mxcl/homebrew/issues/2567

在回溯的下面。

代码语言:javascript
运行
复制
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,我会得到以下回溯。

代码语言:javascript
运行
复制
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

知道我做错了什么吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-04-03 01:39:55

配置:错误:C编译器无法创建可执行文件

错误:“/Developer”的方法`/‘未定义:String

建议您不要安装Xcode和gnu c++。从您的操作系统磁盘安装代码或注册为开发人员(免费)并获得XCode 3或从AppStore购买Xcode,

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5524737

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档