简体   繁体   中英

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

I need to install sphinx via homebrew with flags, but there is error

$ 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

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). We added recently a tap, just brew tap manticoresoftware/tap && brew install manticoresearch . Formula compiles with support for all connectors (mysql,postgres,odbc).

--option support from hombrew-core formulae is removed in Homebrew 2.0.0. 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.

Release Note of Homebrew 2.0.0

Homebrew does not have any formulae with options in 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.

If you wanna additional dependencies in a package, you have to modify the formula and build it by yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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