dimanche 22 février 2015

Use specific local gcc and related libraries with Homebrew


I would like to use Homebrew to install some stuff,


In the mean time, I have already installed my local gcc, and I want Homebrew to use this specific one (this gcc at /usr/local/bin/gcc is frequently upgraded by myself).


Unfortunately, Homebrew always figure out its gcc dependency, and related libraries, then download them all at /usr/local/Cellar.


For instance:


On my Mac, which gcc indeed points to /usr/local/bin/gcc, when I brew install suite-sparse, it downloads gcc-4.9.1, while I already have gcc-4.9.2 locally.


I just want to keep things simple, use my local gcc with the associated library, e.g. gmp and mpfr (at /usr/local/lib), is it possible with Homebrew?





Aucun commentaire:

Enregistrer un commentaire