LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where to locate glibc in the file system (https://www.linuxquestions.org/questions/linux-newbie-8/where-to-locate-glibc-in-the-file-system-4175640609/)

shlomo.hovir 10-17-2018 11:08 PM

where to locate glibc in the file system
 
where to locate glibc in the file system
and other libraries like gtk c ones of course i couldn't find them in /lib

ehartman 10-17-2018 11:21 PM

> where to locate glibc in the file system

They mostly are in /lib (32-bit systems) cq /lib64 (64, of course), but they are named libc-<version>.so (i.e. libc-2.28.so) with a sysbolic LINK libc.so.6 pointing TO it.
Other libraries are either in /lib[64] or /usr/lib[64] and have a likewise versioned filename, libgtk mostly is in /usr/lib[64]

shlomo.hovir 10-17-2018 11:27 PM

Quote:

Originally Posted by ehartman (Post 5916121)
> where to locate glibc in the file system

They mostly are in /lib (32-bit systems) cq /lib64 (64, of course), but they are named libc-<version>.so (i.e. libc-2.28.so) with a sysbolic LINK libc.so.6 pointing TO it.
Other libraries are either in /lib[64] or /usr/lib[64] and have a likewise versioned filename, libgtk mostly is in /usr/lib[64]

have found it
btw i want to ask are that true? because afaik static libraries can be embeded within a program
http://i.imgur.com/9HEsOvx.png

ehartman 10-18-2018 12:00 AM

Quote:

Originally Posted by shlomo.hovir (Post 5916123)
have found it
static libraries can be embeded within a program
http://i.imgur.com/9HEsOvx.png

Most distro's do not supply the static libraries, especially of glibc, anymore, but _if_ yours does: they are named the same, but with a .a (instead of .so, shared object) extension.
So /lib[64]/lib-2.28.a would be the static version of the glibc library.

Do not confuse it with the .la file, which is linking information, not a library at all.


All times are GMT -5. The time now is 12:06 PM.