brew install libcaca --with-imlib2 -> invalid option: --with-imlib2
teamgroove opened this issue · 5 comments
Command:
brew install libcaca --with-imlib2
Output:
Error: invalid option: --with-imlib2
brew --version
Homebrew 2.0.0
Homebrew/homebrew-core (git revision 94636; last commit 2019-02-06)
Homebrew/homebrew-cask (git revision 3dd06; last commit 2019-02-06)
MacOS: 10.13.1 (17B1003)
Same here.
Same command, same output.
brew --version
Homebrew 2.0.6
Homebrew/homebrew-core (git revision fb006; last commit 2019-04-02)
OS X 10.14.4
also seeing:
Output:
Error: invalid option: --with-imlib2
not sure how to resolve this
Very much a hacky workaround, but it worked for me. It seems that the --with-imlib2
options was removed in the latest version of the formula, so I looked up what it looked like in the previous version and found this part
option 'with-imlib2', 'Build with Imlib2 support'
depends_on :x11 if build.with? "imlib2"
if build.with? "imlib2"
depends_on 'pkg-config' => :build
depends_on 'imlib2' => :optional
end
I ran brew edit libcaca
and added that above the head do
part (minus depends_on 'pkg-config' => :build
as that's already in the formula), saved it and then brew install libcaca --with-imlib2
.
Voila, it works.
https://formulae.brew.sh/formula/libcaca
libcaca
now includes imlib2 1.7.0
as a dependency without a flag.