Page 1 of 1

Install glibc 2.23

Posted: Mon Oct 01, 2018 5:44 am
by RonaldV
Trying to find my way in MX linux. Looks good.
I have a 64 bits in which I want to install not the latest 2.24 libc but the 2.23 version.
I run lots of old gcc 2.96 compiled programs on many systems that I can not opdate.
The 64 bits MX will be part of those systems to gradualy move away from 32 bits.
But it must be capable to run those old binaries.
I have installed 2.24 libc but that end in an "Fatal error: GLIBC detected an invalid stdio handle"
If I copy 2.23 libc from a Mint 19 (as a test) it works.
So the question is: how do I install 2.23 libc in MX with help of a package manager,
or "dpkg <libc6-i386_2.23-0ubuntu10_amd64.deb>

Re: Install glibc 2.23

Posted: Mon Oct 01, 2018 10:48 pm
by timkb4cq
First of all, changing libc6 is definitely not recommended. It's a core library against which nearly everything else in a distribution is compiled.
With versions this close you might get away with it, and were you to decide to do so, I would recommend getting the latest libc6 2.23 from the debian snapshot repository rather than using an ubuntu build.

However, there is a safer alternative. Get that debian libc6_2.23, unpack it somewhere and copy the .so files to a reasonable spot (I'd probably use /opt/lib/libc6/). Then use this guide
https://unix.stackexchange.com/question ... newer-libc
to create launchers or bash scripts which run those old binaries with the older libc6. You're much more likely to keep a stable system that way.

Re: Install glibc 2.23

Posted: Fri Oct 05, 2018 7:18 am
by RonaldV
Thank for the reply, but I wanted to install a 32 bits version of libc, not the 64 bits one.
I downloaded the latest I could find before 2.24 ( libc6-i386_2.19-18+deb8u10_amd64) and all is running wel.

Re: Install glibc 2.23

Posted: Fri Oct 05, 2018 3:12 pm
by Stevo
There's also the options of just running Jessie or MX 16 in a virtual machine for your older programs, or in an schroot.