I need build some old projects, using gcc-4.8 or 4.9. (Latest gcc prompts tons of errors. I don't have time for the fix)
How to install gcc-4.8 or 4.9 on Debian 10?
Thanks.
empty@E485 ~ % apt install -s gcc-4.9
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
cpp-4.9 gcc-4.9-base libasan1 libcloog-isl4 libgcc-4.9-dev libisl10 libmpfr4
multiarch-support
Suggested packages:
gcc-4.9-locales gcc-4.9-multilib gcc-4.9-doc libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg
libquadmath0-dbg
The following NEW packages will be installed:
cpp-4.9 gcc-4.9 gcc-4.9-base libasan1 libcloog-isl4 libgcc-4.9-dev libisl10 libmpfr4
multiarch-support
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Inst multiarch-support (2.28-10 Debian:10.3/stable [amd64])
Inst gcc-4.9-base (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Conf multiarch-support (2.28-10 Debian:10.3/stable [amd64])
Inst libasan1 (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Inst libisl10 (0.12.2-2 Debian:8.11/oldoldstable [amd64])
Inst libcloog-isl4 (0.18.2-1+b2 Debian:8.11/oldoldstable [amd64])
Inst libmpfr4 (3.1.2-2 Debian:8.11/oldoldstable [amd64])
Inst cpp-4.9 (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Inst libgcc-4.9-dev (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Inst gcc-4.9 (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Conf gcc-4.9-base (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Conf libasan1 (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Conf libisl10 (0.12.2-2 Debian:8.11/oldoldstable [amd64])
Conf libcloog-isl4 (0.18.2-1+b2 Debian:8.11/oldoldstable [amd64])
Conf libmpfr4 (3.1.2-2 Debian:8.11/oldoldstable [amd64])
Conf cpp-4.9 (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Conf libgcc-4.9-dev (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
Conf gcc-4.9 (4.9.2-10+deb8u2 Debian-Security:8/oldoldstable [amd64])
empty@E485 ~ %
$ mkdir ~/jessie_chroot
# debootstrap jessie /home/$user/jessie_chroot http://deb.debian.org/debian
# chroot /home/$user/jessie_chroot
[chroot]# apt install gcc-4.9
# systemd-nspawn -bD /home/$user/jessie_chroot
Users browsing this forum: No registered users and 2 guests