这是Ubuntu16.04
siasun@ubuntu:~$ ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu11) 2.23
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the sourcefor copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
siasun@ubuntu:~$
siasun@ubuntu:~$
siasun@ubuntu:~$ /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Ubuntu GLIBC 2.23-0ubuntu11) stable release version 2.23, by Roland McGrath et al.
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the sourcefor copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 5.4.0 20160609.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>.
siasun@ubuntu:~$
这是Ubuntu18.04
siasun@ubuntu:~$ ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.2) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the sourcefor copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
siasun@ubuntu:~$
siasun@ubuntu:~$ /lib/x86_64-linux-gnu/
ld-2.27.so libc-2.27.so libpthread-2.27.so security/
ld-linux-x86-64.so.2 libc.so.6 libpthread.so.0
siasun@ubuntu:~$ /lib/x86_64-linux-gnu/lib
libc-2.27.so libc.so.6 libpthread-2.27.so libpthread.so.0
siasun@ubuntu:~$ /lib/x86_64-linux-gnu/libc
libc-2.27.so libc.so.6
siasun@ubuntu:~$ /lib/x86_64-linux-gnu/libc
libc-2.27.so libc.so.6
siasun@ubuntu:~$ /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1.2) stable release version 2.27.
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the sourcefor copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 7.5.0.
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>.
siasun@ubuntu:~$
siasun@ubuntu:~$ sudo apt install libstdc++-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libstdc++-dev:i386 is a virtual package provided by:
libstdc++-6-dev:i386 6.5.0-2ubuntu1~18.04
libstdc++-8-dev:i386 8.4.0-1ubuntu1~18.04
libstdc++-7-dev:i386 7.5.0-3ubuntu1~18.04
libstdc++-5-dev:i386 5.5.0-12ubuntu1
libstdc++-4.8-dev:i386 4.8.5-4ubuntu8
libc++-dev:i386 6.0-2
You should explicitly select one to install.
E: Package 'libstdc++-dev:i386' has no installation candidate
siasun@ubuntu:~$ sudo apt install libstdc++-6-dev:i386