简体   繁体   English

Homebrew:无法通过 brew 选项安装(macOS Mojave)

[英]Homebrew: Can't install with options through brew (macOS Mojave)

I need to install sphinx via homebrew with flags, but there is error我需要通过带有标志的自制软件安装 sphinx,但有错误

$ brew install sphinx --mysql --pgsql $ brew install sphinx --mysql --pgsql

    Ignoring byebug-10.0.2 because its extensions are not built.  Try: gem pristine byebug --version 10.0.2
    Ignoring byebug-10.0.2 because its extensions are not built.  Try: gem pristine byebug --version 10.0.2
    Usage: brew install [options] formula

    Install formula.

    formula is usually the name of the formula to install, but it can be specified
    in several different ways.

    Unless HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will be run for the
    installed formulae or, every 30 days, for all formulae.
--------------------------------------
    Error: invalid option: --mysql

$ brew -v $ brew -v

Homebrew 2.1.6
Homebrew/homebrew-core (git revision bacd7; last commit 2019-06-25)
Homebrew/homebrew-cask (git revision 48e24; last commit 2019-06-25)

Try manticore (the sphinx fork).试试 manticore(狮身人面像叉子)。 We added recently a tap, just brew tap manticoresoftware/tap && brew install manticoresearch .我们最近添加了一个水龙头,只需brew tap manticoresoftware/tap && brew install manticoresearch Formula compiles with support for all connectors (mysql,postgres,odbc).公式编译时支持所有连接器(mysql、postgres、odbc)。

--option support from hombrew-core formulae is removed in Homebrew 2.0.0. Homebrew 2.0.0 中删除了来自hombrew-core公式的--option支持。 Just the formulae repo homebrew-core , but not the brew command drops the support for --option , which means you can still define and use --option in your custom formula.只是公式 repo homebrew-core ,而不是brew命令放弃了对--option的支持,这意味着您仍然可以在自定义公式中定义和使用--option

Release Note of Homebrew 2.0.0 Homebrew 2.0.0 发布说明

Homebrew does not have any formulae with options in Homebrew/homebrew-core . Homebrew 在Homebrew/homebrew-core中没有任何带有选项的公式。 Options will still be supported and encouraged by third-party taps.第三方水龙头仍将支持和鼓励选项。 This change allows us to better focus on delivering binary packages rather than options.这一变化使我们能够更好地专注于交付二进制包而不是选项。 Formulae with options had to be built from source, could not be tested on our CI system and provided a disproportionate support burden on our volunteer maintainers.带有选项的公式必须从源代码构建,无法在我们的 CI 系统上进行测试,并为我们的志愿者维护人员提供了不成比例的支持负担。

If you wanna additional dependencies in a package, you have to modify the formula and build it by yourself.如果您想在包中添加额外的依赖项,则必须修改公式并自行构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM