How do I modify a Homebrew formula?

后端 未结 1 1081
执念已碎
执念已碎 2020-12-12 23:45

I installed ImageMagick via Homebrew.

However, due to a bug I have with my current configuration, I need to adjust the compile flags for the formula and reinstall it

相关标签:
1条回答
  • 2020-12-12 23:56

    Remove the existing version.

    $ brew rm imagemagick
    

    Then to edit the formula, just edit it:

    $ brew edit imagemagick
    

    This will bring it up in an editor; make sure your $EDITOR variable is set to your preference (for me: TextMate)

    Change it, save it, try installing it.

    If you're comfortable with git, you may want to make a branch first, and do your edits in a branch.

    0 讨论(0)
提交回复
热议问题