linux - How can you determine installed versions of the glibc (etc.) libraries? -


i'm working embedded linux deployment , using cross compiler tool chain doesn't compile i2c library function calls.

how determine precise versions of libraries on system may rebuild tool chain?

i don't intend replace libraries deployed, know work (including i2c), believe need following:

  • binutils version
  • gcc version
  • glibc
  • kernel (for headers)

i think can assume following binutils library version 2.2.5. kernel modded i've source.

root@dev-box />ls /lib/ -al drwxrwxrwx  3 root root     1024 apr 27 09:44 . drwxrwxrwx 14 root root     1024 jan  1  1970 .. -rwxrwxrwx  1 root root   105379 jan  1  1970 ld-2.2.5.so lrwxrwxrwx  1 root root       16 jan  1  1970 ld-linux.so.2 -> /lib/ld-2.2.5.so lrwxrwxrwx  1 root root       16 jan  1  1970 ld.so.1 -> /lib/ld-2.2.5.so -rwxrwxrwx  1 root root  1288601 jan  1  1970 libc.so.6 -rwxrwxrwx  1 root root    25441 jan  1  1970 libcrypt.so.1 -rwxrwxrwx  1 root root    14303 jan  1  1970 libdl.so.2 -rwxrwxrwx  1 root root    36800 jan  1  1970 libgcc_s.so.1 -rwxrwxrwx  1 root root   530401 jan  1  1970 libm.so.6 -rwxrwxrwx  1 root root    86626 jan  1  1970 libnsl.so.1 -rwxrwxrwx  1 root root    17533 jan  1  1970 libnss_dns.so.2 -rwxrwxrwx  1 root root    46324 jan  1  1970 libnss_files.so.2 -rwxrwxrwx  1 root root    98633 jan  1  1970 libpthread.so.0 -rwxrwxrwx  1 root root    69966 jan  1  1970 libresolv.so.2 -rwxrwxrwx  1 root root    12897 jan  1  1970 libutil.so.1 

for glibc:

/lib/libc.so.6

sounds maybe strange run file should print out version information in case

for kernel version use uname

for binutils parsing output of ld --versionmight yield expect, same gcc --version. bit tedious not know way.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -