Closed oneillkza closed 10 years ago
I tried to use linuxbrew on a Gentoo server and my error looked like this:
==> Installing dependencies for ncdu: pkg-config, gpatch, ncurses
==> Installing ncdu dependency: pkg-config
gcc-config: error: could not run/locate 'gcc-5'
Error: pkg-config cannot be built with any available compilers.
Install Clang or brew install gcc
For me the command brew link --overwrite gcc
did the trick and created all necessary symlinks so everything would work.
I'm trying to install linuxbrew on a machine running CentOS 6.5, which means that it has extremely outdated packages, such that linuxbrew does not want to use the system-installed gcc. I have no systems rights on the machine, so cannot upgrade these myself.
The suggested solution by linuxbrew is:
However, when I run
brew install gcc
, the following happens: