Installing File-LibMagic Installing File-LibMagic requires that you have the *libmagic.so* library and the *magic.h* header file installed. #### What is a SO file? An SO file is a shared library used by programs installed on the Linux and Android operating systems. It contains common program functions and logic that multiple programs require access to.