LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2018, 11:08 PM   #1
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Rep: Reputation: Disabled
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
 
Old 10-17-2018, 11:21 PM   #2
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 955

Rep: Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500
> 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]
 
Old 10-17-2018, 11:27 PM   #3
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
> 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

Last edited by shlomo.hovir; 10-17-2018 at 11:31 PM.
 
Old 10-18-2018, 12:00 AM   #4
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 955

Rep: Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500
Quote:
Originally Posted by shlomo.hovir View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to locate package x-windows-system-core. Debian bwilky11 Linux - Newbie 1 04-12-2012 01:28 PM
Can't locate pm file. srb24 Linux - Server 3 08-25-2010 09:57 AM
Is 'Can't locate module block-major-xx' causing this system to crash? stshores24 Red Hat 1 10-05-2006 09:01 AM
What is the best way to locate a broken package on your system? bipins1979 Linux - Software 3 03-23-2005 03:30 AM
Can't locate file.... thethinker101 Slackware 4 10-18-2004 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration