【问题标题】:Can't brew install postgresql on Mac Snow Leopard无法在 Mac Snow Leopard 上 brew install postgresql
【发布时间】:2013-09-30 08:49:12
【问题描述】:

尝试在我的 OSX 10.6.8 上安装 PostgreSQL:

$ brew install postgresql

输出(试一试):

==> Installing dependencies for postgresql: ossp-uuid
==> Installing postgresql dependency: ossp-uuid
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz

curl: (7) couldn't connect to host
Trying a mirror...
==> Downloading http://gnome-build-stage-1.googlecode.com/files/uuid-1.6.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ossp-uuid/1.6.2 --without-perl --without-php --without-pgsql
==> make
make: *** [uuid_sha1.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [uuid_md5.lo] Error 1
make: *** [uuid.lo] Error 1
make: *** [uuid_prng.lo] Error 1

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

输出(尝试 2):

==> Installing dependencies for postgresql: ossp-uuid
==> Installing postgresql dependency: ossp-uuid
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/ossp-uuid-1.6.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/ossp-uuid/1.6.2 --without-perl --without-php --without-pgsql
==> make
i686-apple-darwin10-gcc-4.2.1: vfork: Operation timed out
gcc-4.2: vfork: Operation timed out
make: *** [uuid_prng.lo] Error 1
make: *** [uuid_md5.lo] Error 1
make: *** [uuid.lo] Error 1

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

不知道该怎么办。 READ THIS link 没用。有人吗?


更新:尝试了 brew doctor,它没有给我任何有用的 AFAIK,只是一些关于它在哪里寻找 Python 的警告:

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

    /Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config

【问题讨论】:

    标签: macos postgresql osx-snow-leopard homebrew


    【解决方案1】:

    错误信息与 postgresql 无关。你试过brew doctor吗? 尝试brew doctor 并查看此链接 (OS X 10.8 - error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1' - installing json gem) 我认为您应该关注vfork operation timed out 消息

    【讨论】:

    • 是的,我尝试过 brew doctor,但似乎没有任何警告相关。 vfork operation timed out 消息并非每次都出现,但我会进一步研究...
    • 刚刚尝试使用--without-ossp-uuid 标志,但仍然失败。还没准备好重新安装自制软件等,我会先提交ticket。感谢您的尝试。
    • @appleparan- 原来这可能只是一个简单的资源限制问题,请查看票证的解决方案 - 所以您对 vfork 操作的看法是正确的 - 感谢您的帮助
    猜你喜欢
    • 2013-08-05
    • 1970-01-01
    • 1970-01-01
    • 2012-01-31
    • 2011-02-12
    • 2010-12-22
    • 1970-01-01
    • 1970-01-01
    • 2010-11-22
    相关资源
    最近更新 更多