Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
teamgroove opened this issue Feb 6, 2019 · 5 comments
Open

Comments

@teamgroove
Copy link

teamgroove commented Feb 6, 2019

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)

@mogita
Copy link

mogita commented Apr 3, 2019

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

@teamgroove
Copy link
Author

teamgroove commented Apr 3, 2019 via email

@mwcm
Copy link

mwcm commented Jul 18, 2019

also seeing:

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

not sure how to resolve this

@johangu
Copy link

johangu commented Aug 27, 2019

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.

@Harwood
Copy link

Harwood commented Aug 20, 2020

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants