Is /usr/local/lib searched for shared libraries?

Make sure your LD_LIBRARY_PATH is set up to include all directories you want to search and then test it again. You can test this quickly with: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ffmpeg which will set it only for that invocation. Alternatively, you can edit /etc/ld.so.conf which contains the default directories searched. Some Linux distributions may not include /usr/local/lib in … Read more

What is the ‘soname’ option for building shared libraries for?

soname is used to indicate what binary api compatibility your library support. SONAME is used at compilation time by linker to determine from the library file what actual target library version. gcc -lNAME will seek for libNAME.so link or file then capture its SONAME that will certainly be more specific ( ex libnuke.so links to … Read more

How to check what shared libraries are loaded at run time for a given process?

Other people are on the right track. Here are a couple ways. cat /proc/NNNN/maps | awk ‘{print $6}’ | grep ‘\.so’ | sort | uniq Or, with strace: strace CMD…. 2>&1 | grep -E ‘^open(at)?\(.*\.so’ Both of these assume that shared libraries have “.so” somewhere in their paths, but you can modify that. The first … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)