I need to install gcc-11.4.0 + dependencies on Debian Bullseye. I downloaded gcc-11.4.0 from:
http://ftp.de.debian.org/debian/pool/main/g/gcc-11/gcc-11_11.4.0-7_amd64.deb
However, if I try to install it via
sudo apt install ./gcc-11_11.4.0-7_amd64.deb
I receive
The following packages have unmet dependencies:
gcc-11 : Depends: cpp-11 (= 11.4.0-7) but it is not installable
Depends: gcc-11-base (= 11.4.0-7) but it is not installable
Depends: libcc1-0 (>= 11.4.0-7) but 10.2.1-6 is to be installed
Depends: binutils (>= 2.41.50.20231214) but 2.35.2-2 is to be installed
Depends: libgcc-11-dev (= 11.4.0-7) but it is not installable
Depends: libc6 (>= 2.34) but 2.31-13+deb11u5 is to be installed
Depends: libgmp10 (>= 2:6.3.0+dfsg) but 2:6.2.1+dfsg-1+deb11u1 is to be installed
Depends: libzstd1 (>= 1.5.5) but 1.4.8+dfsg-2.1 is to be installed
and some of these packages have dependencies again. It seems really cumbersome to install a specific version of a package if this package has a lot of dependencies.
Any tips on how to avoid downloading and installing the packages by hand are very much appreciated.
configure.ac
files. I haven’t checked recently but as far as I’m aware, the libraries available in Debian 11 (without rebuilding) meet the requirements for building GCC 11 from source. – Stephen Kitt Jan 22 '24 at 12:39