使用brew在mac上安装特定版本的postgresql

时间:2014-07-08 09:41:48

标签: macos postgresql-9.2

我正在尝试在OS X 10.9.3上安装postgresql 9.2并收到以下错误。我该如何解决?

$ brew install postgresql92
==> Downloading http://ftp.postgresql.org/pub/source/v9.2.6/postgresql-9.2.6.tar.bz2
Already downloaded: /Library/Caches/Homebrew/postgresql92-9.2.6.tar.bz2
==> Patching
patching file src/pl/plpython/Makefile
patching file contrib/uuid-ossp/uuid-ossp.c
==> ./configure --prefix=/usr/local/Cellar/postgresql92/9.2.6 --datadir=/usr/local/Cellar/postgresql92/9.2.6/share/postgresql92 --docdir=/usr/local/Cellar/postgresql92/9.2.6/share
checking for POSIX signal interface... yes
checking for working memcmp... yes
checking for tclsh... /usr/bin/tclsh
checking for tclConfig.sh... no
configure: error: file 'tclConfig.sh' is required for Tcl

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/exceptions.rb:182:in `dump': undefined local variable or method `f' for #<BuildError:0x007ff6029ef250> (NameError)
  from /usr/local/Library/brew.rb:158:in `rescue in <main>'
  from /usr/local/Library/brew.rb:66:in `<main>'

1 个答案:

答案 0 :(得分:1)

您可以“解决”将标志--no-tcl添加到brew命令的Tcl错误:

$ brew install postgres --no-tcl

希望它有所帮助。