centos installed 32-bit glibc

Install 32-bit glibc

Install dependencies first: yum install glibc-static.i686 libgcc.i686 -y

First download the source code package:
download address:
http://ftp.gnu.org/gnu/glibc/

tar -zxvf glibc-2.18.tar.gz
cd /glibc-2.18
mkdir build
cd build/
.../configure --prefix=/usr/ CC="gcc -m32" CXX="g++ -m32" --host=i686- linux ( note, there are two dots in front )
make -j all
make install
strings /lib/libc.so.6 |grep GLIBC Scroll up, you can see that there is already 2.18
insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/Z1404686551/article/details/88953371