maelvls / homebrew-amc

🍺 Homebrew formula for auto-multiple-choice 📖
https://www.auto-multiple-choice.net/download-macosx.en
34 stars 10 forks source link

Unable to install AMC on brand new Mac #84

Open mosser opened 1 year ago

mosser commented 1 year ago

Hi,

I tried to install AMC using Homebrew on a brand new mac. When using out of the box the provided command, the install fails:

mosser@azrael ~ % brew install maelvls/amc/auto-multiple-choice
...
fatal error: 'cairo.h' file not found

Reverse engineering another issue (#82), I ended up manually installing first Xquartz (not sure it was necessary) and then libxcb (brew reinstall libxcb), and then the installation was able to finish.

There may be a dependency issue in the brew file.

maelvls commented 1 year ago

Hi! Sorry for that. I imagine you are running macOS Ventura, I haven’t upgraded to that version yet. You are most probably correct, there is a dependency missing, probably related to the changes to Homebrew.

You are correct, Xquartz is required to run AMC, I think I had to remove the :x11 dependency (which used to let you know that Xquartz needs to be installed) because Homebrew deprecated it. I’ll have to investigate libxcb, but I’m guessing this is a new requirement that needs to be added to the formula.

I don’t have time to investigate these issues at the moment but I’ll be able to help on May 4th onwards.

Let me know if you would like to create a PR, I can help!