自制安装postgresql问题

发布于 2024-10-28 15:16:12 字数 2358 浏览 0 评论 0原文

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

我安装了xcode并且可以启动它,这是homebrew的先决条件。 然后我安装了自制程序并运行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,我会得到以下引用。

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

知道我做错了什么吗?

I'm new to OSX and want to install postgresql, as it is my preferred db for django.

I installed xcode and can start it, which is a prerequisite for homebrew.
Then I installed homebrew and run brew install postgresql, getting the following warning and errors. First of all I get an Xcode is not installed warning, whereas it is definitely installed. I think the reason for this warning is described in this post: https://github.com/mxcl/homebrew/issues/2567

Below the traceback.

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

If i run brew-config I get the following 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

Any idea what I did wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

開玄 2024-11-04 15:16:12

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

错误:“/Developer”的未定义方法`/':字符串

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

configure: error: C compiler cannot create executables

and

Error: undefined method `/' for "/Developer":String

suggest that you do not have Xcode and gnu c++ installed. Install code from your OS disk or register as a developer (free) and get XCode 3 or buy Xcode from AppStore,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文