代码之家  ›  专栏  ›  技术社区  ›  jeremylo7

使用brew找不到PHP的php72 pdo pgsql/PostgreSQL驱动程序

  •  5
  • jeremylo7  · 技术社区  · 7 年前

    我使用的是用自制软件安装的PHP 7.2.3,我想为我的PHP安装PostgreSQL驱动程序。

    我尝试使用自制搜索搜索驱动程序

    jeremy@mbp ~ brew search php72-pdo-pgsql
    ==> Searching local taps...
    ==> Searching taps on GitHub...
    ==> Searching blacklisted, migrated and deleted formulae...
    No formula found for "php72-pdo-pgsql".
    Closed pull requests:
    enchant 2.2.0 (https://github.com/Homebrew/homebrew-core/pull/21807)
    Add PHP 7.2.0-alpha.1 core formula (php72) (https://github.com/Homebrew/homebrew-php/pull/4211)
    

    我尝试了brew update&&brew升级,但我仍然找不到适用于我的PHP版本的PostgreSQL驱动程序。

    此外,我尝试只使用 brew search pgsql ,但没有一个结果适用于我的PHP版本。

    这是我的brew tap结果

    jeremy@mbp ~ brew tap
    caskroom/cask
    heroku/brew
    homebrew/core
    homebrew/dupes
    homebrew/php
    homebrew/services
    

    和我的brew版本

    jeremy@mbp ~ brew -v
    Homebrew 1.5.10
    Homebrew/homebrew-core (git revision c3a9a; last commit 2018-03-17)
    
    1 回复  |  直到 7 年前
        1
  •  2
  •   Rauli Rikama    7 年前

    自包装中包含的php72起。所以如果你现在这样做 brew install php 你会得到包括在内的。参考号: https://github.com/Homebrew/homebrew-php/commit/8771c68f3ddfee62d9e97177449010c2968f91d1#commitcomment-27883803