【问题标题】:Homebrew phpNN-xdebug missing?Homebrew phpNN-xdebug 不见了?
【发布时间】:2018-04-17 00:31:39
【问题描述】:

我正在尝试使用自制软件在 Mac 上安装 php56-xdebug。所有关于如何执行此操作的建议似乎都已过时两周。

我从显而易见的开始:

$ brew install php56-xdebug
Error: No available formula with the name "php56-xdebug"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

当我使用brew search xdebug 时,我得到了

==> Searching local taps...
==> Searching taps on GitHub...
==> Searching blacklisted, migrated and deleted formulae...
No formula found for "xdebug".

随后是一大堆封闭的拉取请求。 brew update 和 brew doctor 没有帮助。

这里还有几个类似我的问题,大多数答案都说我需要添加tap homebrew/php,但现在似乎不再是这样了:

$ brew tap homebrew/php
Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated

但是迁移到了哪里? homebrew/php 的 git repo 已于 16 天前关闭,备忘录“迁移到 homebrew/core”。但我找不到那里缺少的公式。 "php56" 只出现在更新 php 本身的公式中。在搜索中,它们甚至没有出现在“最近删除”下。

我只是不幸需要 xdebug 而 php56 支持在某种自制软件中,因为公式已移至核心存储库?

如果答案是肯定的,那么跟进是,“这种事情经常发生吗?”

【问题讨论】:

    标签: php homebrew xdebug


    【解决方案1】:

    如homebrew/homebrew-php 所述:

    所有公式都已迁移到 Homebrew/homebrew-core 或删除。

    所以,如果公式不在核心中,它们就消失了。让我们看看核心是什么:

    $ git clone https://github.com/Homebrew/homebrew-core.git
    ...
    $ ls -1 homebrew-core/Formula/php*
    homebrew-core/Formula/php-code-sniffer.rb
    homebrew-core/Formula/php-cs-fixer.rb
    homebrew-core/Formula/php.rb
    homebrew-core/Formula/php@5.6.rb
    homebrew-core/Formula/php@7.0.rb
    homebrew-core/Formula/php@7.1.rb
    homebrew-core/Formula/phplint.rb
    homebrew-core/Formula/phpunit.rb
    

    所以我看到了正确的 PHP 5.6,以及一些 PHP devops 实用程序。但是,我没有看到 XDebug。

    鉴于news页面上的声明:

    很遗憾,我们无法通过 Homebrew 组织中的非核心公式水龙头来维持可接受的、一致的用户或贡献者体验和 CI 工作量,因此我们将继续将广泛使用的公式迁移到 Homebrew/core 中,并鼓励更多利基公式和在 Homebrew 组织之外支持的选项。

    关于“继续”迁移,并且考虑到迁移是从 Python 2.7 到 3+ - 这不一定是微不足道的 - 我怀疑它们目前处于困境......或者已经消失了。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-26
    • 2012-09-24
    • 2018-09-12
    • 2020-05-30
    • 1970-01-01
    • 2016-07-07
    • 1970-01-01
    相关资源
    最近更新 更多