![在 /lib/libc 中找不到 C 库](https://linux22.com/image/909062/%E5%9C%A8%20%2Flib%2Flibc%20%E4%B8%AD%E6%89%BE%E4%B8%8D%E5%88%B0%20C%20%E5%BA%93.png)
我了解到 C 库位于
/lib/libc.so.6 or /lib64/libc.so.6, but this file
is sometimes a symbolic link to a file of another name, such as /lib/
libc-2.15.so.
然而,我能找到它
me@host:~$ ls /lib
apparmor cpp hdparm klibc-wBFLvVtxy4xJqEadIBJMa78iJz8.so modprobe.d recovery-mode udev
brltty crda ifupdown linux-sound-base modules systemd ufw
console-setup firmware init lsb netplan terminfo x86_64-linux-gnu
me@host:~$ ls /lib64
ld-linux-x86-64.so.2
我如何在 ubuntu 18.10 中找到 C 库?
答案1
64 位库位于 /lib/x86_64-linux-gnu,32 位库位于 /lib/i386-linux-gnu
答案2
你可以跑
me@host:~$ whereis libc
查找共享和静态 libc 库的确切位置