Installing File-LibMagic Installing File-LibMagic requires that you have the *libmagic.so* library and the *magic.h* header file installed.