By default, libraries are located in /usr/local/lib, /usr/local/lib64, /usr/lib and /usr/lib64 ; system startup libraries are in /lib and /lib64. Programmers can, however, install libraries in custom locations. The library path can be defined in /etc/ld.