Jer*_*rry 5 php homebrew xdebug
我正在尝试使用自制软件在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.
Run Code Online (Sandbox Code Playgroud)
当我用brew search xdebug我得到
==> Searching local taps...
==> Searching taps on GitHub...
==> Searching blacklisted, migrated and deleted formulae...
No formula found for "xdebug".
Run Code Online (Sandbox Code Playgroud)
接着是一大堆封闭拉动请求.brew update并brew doctor没有帮助.
还有其他几个像我这样的问题,大多数答案说我需要添加点击homebrew/php,但似乎不再是这种情况:
$ brew tap homebrew/php
Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated
Run Code Online (Sandbox Code Playgroud)
但迁移到哪里?homebrew/php的git repo在16天前关闭,备忘录"迁移到自制/核心".但我在那里找不到丢失的公式."php56"仅出现在更新php本身的公式中.在搜索中,它们甚至没有显示在"最近删除"下.
我只是不幸需要xdebug,而php56支持在某种类型的homebrew-limbo中,因为公式被移动到核心仓库?
如果答案是肯定的,那么后续行动就是"这种事情经常发生吗?"
所有公式都已迁移到 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
Run Code Online (Sandbox Code Playgroud)
所以我看到了 PHP 5.6,以及一些 PHP devops 实用程序。但是,我没有看到 XDebug。
鉴于新闻页面上的声明:
不幸的是,我们无法通过 Homebrew 组织中的非核心公式水龙头来维持可接受的、一致的用户或贡献者体验和 CI 工作负载,因此我们将继续将广泛使用的公式迁移到 Homebrew/核心中,并鼓励更多利基公式和选项在 Homebrew 组织之外得到支持。
关于“继续”迁移,并且考虑到迁移是从 Python 2.7 到 3+ - 这不一定是微不足道的 - 我怀疑它们目前处于不确定状态......或者消失了。