Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to install gcc-6 in debian bullseye

461 views
Skip to first unread message

michaelm...@gmail.com

unread,
May 2, 2022, 4:30:05 PM5/2/22
to

Can anyone kindly instruct me how to install gcc-6 in Debian 11? I need compile a software and was hinted gcc version (10) is too high. I have
old machine with gcc 6 and was able to compile it there.

 

Thank you very much.

Michael

 

 

Greg Wooledge

unread,
May 2, 2022, 4:50:05 PM5/2/22
to
On Mon, May 02, 2022 at 03:25:20PM -0500, michaelm...@gmail.com wrote:
> Can anyone kindly instruct me how to install gcc-6 in Debian 11? I need
> compile a software and was hinted gcc version (10) is too high. I have
> old machine with gcc 6 and was able to compile it there.

Stop looking at packages. Download the source code for gcc 6, and build
it as if it were a foreign program. Install it in /usr/local or
/opt/something as if it were a foreign program.

Or, fix the program you're trying to compile, because it's clearly full
of bugs that older gcc simply wasn't catching.

Georgi Naplatanov

unread,
May 2, 2022, 5:10:05 PM5/2/22
to
On 5/2/22 23:25, michaelm...@gmail.com wrote:
> Can anyone kindly instruct me how to install gcc-6 in Debian 11? I need
> compile a software and was hinted gcc version (10) is too high. I have
> old machine with gcc 6 and was able to compile it there.
>

It seems that Debian 9 has gcc-6 so you can use Docker image with Debian 9.

HTH

Kind regards
Georgi

to...@tuxteam.de

unread,
May 3, 2022, 1:00:05 AM5/3/22
to
Alternatively, build in a chroot, using archives.debian.org as
source (that's what I do; for convenience I use schroot, but
am not really sure whether to keep it). The Debian Wiki [1]
has a good starting point.

Cheers

[1] https://wiki.debian.org/chroot
--
t
signature.asc
0 new messages