Domanda

Does anyone know how to override the default location of where Linuxbrew looks for the gcc compiler? The system that I am asking on has gcc 4.1.2 while Linuxbrew requires 4.2. I've been able to get a binary of another gcc compiler and would like to point Linuxbrew to that binary.

I added the path of the gcc compiler to my $PATH, but when trying to run a brew install formula it still refers to the /usr/bin/gcc.

I haven't been able to find the answer looking around. If has any ideas that would be helpful. Thanks,

È stato utile?

Soluzione

Original answer:

brew install some_package --cc=your_desired_cc

Complete answer based on comments:

export PATH=<path-to-desired-cc>:$PATH
brew install <some_package> --cc=gcc
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top