Linuxbrew / legacy-linuxbrew

:skull: This repository is defunct, because it has been split into https://github.com/Linuxbrew/brew and https://github.com/Linuxbrew/homebrew-core
http://linuxbrew.sh
Other
2.23k stars 296 forks source link

Unable to bootstrap gcc #137

Closed oneillkza closed 10 years ago

oneillkza commented 10 years ago

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:

To install this formula, you may need to:
  brew install gcc

However, when I run brew install gcc, the following happens:

==> Installing dependencies for gcc: gmp, mpfr, libmpc, pkg-config, isl, 
==> Installing gcc dependency: gmp
Error: gmp cannot be built with any available compilers.
 To install this formula, you may need to:
  brew install gcc
r41d commented 7 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.