NikitaIvanovV / ctpv

Image previews for lf file manager
https://www.nikitaivanov.com/man1/ctpv
MIT License
264 stars 24 forks source link

magic.h not found #4

Closed itsdeadguy closed 2 years ago

itsdeadguy commented 2 years ago

Could you tell me what package provides this lib? I just got a compile error saying i'm missing this. I did some searching, but there were several results, including some kernel library.

NikitaIvanovV commented 2 years ago

libmagic is a lib used in file utility. On my system (Arch Linux) file and libmagic are distributed in the same package called file but in your case you probably need to install a seperate package for the lib and dev files. What Linux distribution do you use?

itsdeadguy commented 2 years ago

I'm on void linux. Is this a python thing? I get libmagick (likely a part of ImageMagick) and python3-magic

NikitaIvanovV commented 2 years ago

It's not a a Python thing and it has nothing to do with ImageMagick. I looked it up and it seems like you need to install libmagic and file-devel packages.

itsdeadguy commented 2 years ago

Thank you! the devel package did the trick.

NikitaIvanovV commented 2 years ago

You're welcome!