我正在尝试在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
如何强制自制程序重新编译?
最佳答案
Homebrew正在以瓶形式(wxmac的预编译二进制文件)安装wxmac。要从源代码构建,请在调用--build-from-source
时添加brew install
标志:
$ brew install --build-from-source wxmac
关于homebrew - 如何强制 Homebrew 程序重新编译?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23484623/