我通过 自酿的安装了 图像魔术。
但是,由于当前配置中的一个 bug,我需要调整公式的编译标志并重新安装它。
我该怎么做呢?
$ brew rm imagemagick
$ brew edit imagemagick
This will bring it up in an editor; make sure your $EDITOR variable is set to your preference (for me: TextMate)
$EDITOR
Because most installs use pouring/bottles to install a precompiled binary, you will likely see no change unless you "build from source":
$ brew reinstall --build-from-source [...]
You can use --formula /path/to/imagemagick.rb as an additional argument to the above command to ensure brew is installing the formula that was edited.
--formula /path/to/imagemagick.rb
brew
If you're comfortable with git, you may also want to make a branch first, and do your edits in a branch to guard against data loss.