【问题标题】:homebrew install postgresql problem自制安装postgresql问题
【发布时间】:2011-04-02 17:36:06
【问题描述】:

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

我安装了xcode并且可以启动它,这是自制软件的先决条件。 然后我安装了自制软件并运行 brew install 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

知道我做错了什么吗?

【问题讨论】:

    标签: macos postgresql homebrew


    【解决方案1】:

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

    错误:"/Developer":String 的未定义方法 `/'

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

    【讨论】:

    • Xcode 已安装。我可以运行它:) 但是在安装它时我可能没有过多地选中一个选项。将重新安装它,看看会发生什么。
    • 你可能也需要 Unix 工具,我忘了它们是在 Xcode 还是 OS 安装中
    • 你是对的。我在安装中未选中 Uix 开发,显然 Homebrew 需要它。感谢您的帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-23
    • 2023-03-05
    • 2022-11-06
    相关资源
    最近更新 更多