我试图在Mac OS X 10.9上安装wxWidgets。它已经安装好了,但我遇到了here所描述的问题。有人建议添加ENV.append_to_cflags "-stdlib=libc++"
。我做了,但我无法重新编译代码。
$ brew install wxmac
Warning: wxmac-3.0.0 already installed
$ brew edit wxmac
=> ok, modifications done, now I want to recompile and reinstall
$ brew uninstall wxmac
Uninstalling /usr/local/Cellar/wxmac/3.0.0...
$ brew install wxmac
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/wxmac- 3.0.0.mavericks.bottle.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/wxmac-3.0.0.mavericks.bottle.2.tar.gz
==> Pouring wxmac-3.0.0.mavericks.bottle.2.tar.gz
/usr/local/Cellar/wxmac/3.0.0: 775 files, 41M
如何强制自制程序重新编译?
答案 0 :(得分:76)
Homebrew正在以瓶子形式安装wxmac(wxmac的预编译二进制文件)。要从源代码构建,请在调用--build-from-source
时添加brew install
标志:
$ brew install --build-from-source wxmac
答案 1 :(得分:10)
从源代码重建所有已安装的FORMULAS:
$ brew list | xargs brew reinstall --build-from-source