Viewing library dependencies of programs in Unix with ldd:
command:
ldd <path_of_binary>
We would see something like this:
ldd /bin/grep
linux-vdso.so.1 => (0x00007fffad1ff000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x00000032fe600000)
libc.so.6 => /lib64/libc.so.6 (0x00000037eaa00000)
/lib64/ld-linux-x86-64.so.2 (0x00000037ea600000)
The environment var to load the library is LD_LIBRARY_PATH whether some library was not loaded.
Nenhum comentário:
Postar um comentário