install libmagic-dev on debian first