【问题标题】:install specific version of postgresql on mac using brew使用 brew 在 mac 上安装特定版本的 postgresql
【发布时间】:2014-07-08 09:41:48
【问题描述】:

我正在尝试在 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>'

【问题讨论】:

    标签: macos postgresql-9.2


    【解决方案1】:

    您可以在 brew 命令中添加标志 --no-tcl 来“解决”Tcl 错误:

    $ brew install postgres --no-tcl
    

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 2021-11-28
      • 1970-01-01
      • 2023-01-10
      • 1970-01-01
      • 1970-01-01
      • 2017-12-01
      • 2022-07-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多