Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I force homebrew to recompile?

Tags:

homebrew

I'm trying to install wxWidgets on Mac OS X 10.9. It's already installed, but I'm having the problem described here. Someone suggested to add ENV.append_to_cflags "-stdlib=libc++". I did, but I'm not able to recompile the code.

$ 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

How can I force homebrew to recompile?

like image 766
Frias Avatar asked May 06 '14 01:05

Frias


People also ask

Does Homebrew compile?

Why do you compile everything? Homebrew provides pre-built binary packages for many formulae. These are referred to as bottles and are available at https://github.com/Homebrew/homebrew-core/packages.

How long does it take to update Homebrew?

From 20 minutes to an hour. The devs are aware.

What is brew cleanup?

If you want to take your tidy-up routine to the next level, you can also run brew cleanup . This command removes downloads for outdated formulas and casks. ~ brew help cleanup Remove stale lock files and outdated downloads for all formulae and casks, and remove old versions of installed formulae.


Video Answer


2 Answers

Homebrew is installing wxmac in bottle form (a pre-compiled binary of wxmac). To build from source, add the --build-from-source flag when calling brew install:

$ brew install --build-from-source wxmac 
like image 198
mipadi Avatar answered Oct 02 '22 16:10

mipadi


To rebuild all installed FORMULAE from source:

 $ brew list | xargs brew reinstall --build-from-source 
like image 28
Károly Kass Avatar answered Oct 02 '22 17:10

Károly Kass