sclack icon indicating copy to clipboard operation
sclack copied to clipboard

brew install libcaca --with-imlib2 -> invalid option: --with-imlib2

Open teamgroove opened this issue 6 years ago • 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)

teamgroove avatar Feb 06 '19 13:02 teamgroove

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

mogita avatar Apr 03 '19 04:04 mogita

Brew must have changend the options syntax. In earlier brew versions it worked. I just couldn`t find the right syntax in the help or docs. Maybe you have more luck?!

Am Mi., 3. Apr. 2019, 06:00 hat Yun Wang [email protected] geschrieben:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haskellcamargo/sclack/issues/107#issuecomment-479328485, or mute the thread https://github.com/notifications/unsubscribe-auth/ACEVA0Dki4SW5M0VvOSo0os8Q5feMN-Bks5vdCdSgaJpZM4alOhk .

teamgroove avatar Apr 03 '19 08:04 teamgroove

also seeing:

Output: Error: invalid option: --with-imlib2

not sure how to resolve this

mwcm avatar Jul 18 '19 18:07 mwcm

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.

johangu avatar Aug 27 '19 15:08 johangu

https://formulae.brew.sh/formula/libcaca

libcaca now includes imlib2 1.7.0 as a dependency without a flag.

Harwood avatar Aug 20 '20 21:08 Harwood